Hello everyone,
I need to draw a lineplot for paneldata.
I used the following command:
collapse (mean) housingindex, by (agegroups wave)
sort agegroups wave
xtset agegroups wave
xtline housingindex, overlay
That worked. But now I need to draw the standard deviation in this plot, also.
The byoptions are limited in the xtline-command, when overlay is used.
Do you know, if there is any possibility to add the standard deviation to the plot?
Maybe addplot-option could work - but I don't understand, how that works.
Thank you in advance!
Mimi
Related Posts with xtline and standard deviation
Pooled regression with interaction term for time?Dear All! I have panel data (time: 2 periods; N: 2,093) and because the Breusch and Pagan Lagrange …
putdocx phtestHi Statalist I am trying to export the proportional hazards statistics to a word document (that als…
Create a Pseudo Panel Data and AnalysisHello eveyone I would like to analyze the determinants of the dynamics of women's employment (15-49…
Summary statistics over two groupsI want to have the mean and sd of a variable separated by two grouping variables, like below but in …
Question on treatment evaluation and demographic characteristics table.Hi everyone, I am working on an assignment for a STATA beginner course, based on the journal articl…
Subscribe to:
Post Comments (Atom)
0 Response to xtline and standard deviation
Post a Comment