[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: serrbar Command
You need to check out the syntax in -help serrbar-. It accepts 3 (and only
3) variables in the varlist. It expects something like a collapsed dataset
where each obs is a mean and std.
collapse (mean) mymean=myvar (sd) mysd=myvar, by(mycatvar)
serrbar mymean mysd mycatvar
You need not and should not create separate variables for each group's mean
and sd you want graphed, that's not the approach taken or syntax allowed.
You may need to try to create a combined catgeorical variable if you have
more than one categorical variable that you want in a single plot.
----- Original Message -----
From: "Syed O Masood" <email@example.com>
Sent: Tuesday, June 22, 2004 10:56 AM
Subject: st: serrbar Command
> I have tried to use the serrbar command after
> generating means. It is giving me following error
> . serrbar mean26 sd26 mean35 sd35 gender
> too many variables specified
> Second in order to generate mean from a continuous
> variable for two different categorical variable there
> is no easy way first I have to generate 9 different
> variables then 9 means and standard deviations, then
> try to plot mean sd using serrbar command and it is
> giving me an error message. Is there a command to
> generate serrbar graph like we use for boxplot.
> Syed O Masood, MBBS, MPH
> Email: firstname.lastname@example.org
> Pager: (410) 850-8147
> Fax: (410) 368-3525
* For searches and help try: