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]

st: twoway line graph with two groups and confidence intervals


From   ClaudiaP <Claudia.Pitts@sydney.edu.au>
To   statalist@hsphsun2.harvard.edu
Subject   st: twoway line graph with two groups and confidence intervals
Date   Mon, 15 Aug 2011 17:25:20 -0700 (PDT)

Hi all :)

A seemingly easy problem but I can't figure out how to accomplish what I
want...thanks for your time.

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. 

Thanks in advance,

Claudia.



--
View this message in context: http://statalist.1588530.n2.nabble.com/twoway-line-graph-with-two-groups-and-confidence-intervals-tp6689687p6689687.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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