Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: twoway line graph with two groups and confidence intervals


From   ClaudiaP <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index