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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: twoway line graph with two groups and confidence intervals


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: twoway line graph with two groups and confidence intervals
Date   Tue, 16 Aug 2011 01:30:59 +0100

See -statsby- and literature on it.

Nick

On Tue, Aug 16, 2011 at 1:25 AM, ClaudiaP <Claudia.Pitts@sydney.edu.au> wrote:

> I have 9 waves (2001-2009) of unbalanced longitudinal data (n=~1500), with
> variables empstatus (employment status, casual=1 or permanent=2) and mh
> (mental health; among other variables).
>
> I would like to produce a line graph showing mean mh scores for each year
> 2001-2009 for casual and permanent workers, with 95% confidence interval for
> each group. That is, year on the x-axis, mh on the y-axis, and two separate
> lines (with legend) for the groups contained in empstatus (casual and
> permanent), with confidence intervals for both groups.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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