Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: -sparkline- revised on SSC

From   "Lachenbruch, Peter" <>
To   "" <>
Subject   RE: st: RE: -sparkline- revised on SSC
Date   Sun, 24 Mar 2013 17:55:26 +0000

Thanks Nick - it _does_ pay to read the help carefully

Peter A. Lachenbruch,
Professor (retired)
From: [] on behalf of Nick Cox []
Sent: Sunday, March 24, 2013 9:30 AM
Subject: Re: st: RE: -sparkline- revised on SSC

That is the syntax. You can use -sparkline with several variables, or
-sparkline with one variable and -over()-, but not both.

The -help- says:

   over() indicates a third variable (e.g. a panel identifier) to
subdivide data. This option
        may only be used when there is a single y variable.

    by() is the usual by_option provided for completeness. Typically
it is less useful than the
        over() option for producing sparklines, but it may be combined
with two or more y

So you could try -by()-  rather than -over()-.

If you have so many different diagnoses, you will have 8 times that
many sparklines. May or may not work well!


On Sun, Mar 24, 2013 at 4:05 PM, Lachenbruch, Peter
<> wrote:
> Here is a command i just issued
> . sparkline mdglobpct patglobpct chaqpct chpq50pct daspct enzpct exmuscpct Imacs_20,over(diagnosis)
> over() may not be combined with more than one variable
> Note that the over didn't work.  Is there something I am missing?  Even after I encoded the diagnsosis varaible i still got bounced.
> Peter A. Lachenbruch,
> Professor (retired)
> ________________________________________
> From: [] on behalf of Nick Cox []
> Sent: Sunday, March 24, 2013 5:04 AM
> To:
> Subject: st: -sparkline- revised on SSC
> Thanks as usual to Kit Baum, a revision of -sparkline- is available on SSC.
> -sparkline- was announced in
> and a revision was announced in
> and the explanation and advice given still applies.
> Scott Merryman alerted me to poor handling of string variables
> supplied to the -over()- option; this is fixed. Thanks to Scott for
> his vigilance. Otherwise, the help file has been revised with an extra
> reference.
*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index