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: How to present lines for subgroups but also for the total sample in the same graph using xtgraph command?


From   Michael Maia Schlussel <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: How to present lines for subgroups but also for the total sample in the same graph using xtgraph command?
Date   Fri, 29 Nov 2013 13:49:16 +0000

I am trying to fit a graph for present the mean of systolic blood pressure (variable name: pas_media) of pregnant women longitudinally (time series variable: visita_ga). I am using xtgraph command do do it, but I can't manage to present lines for the two subgroups of women I have (group variable: stdpas), but also a third line for the total sample. It is possible to do it with this command?


commands I am using:


.tsset id visita_ga
.xtgraph pas_media, av(am) bar(ci) group(stdpas)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index