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
Reshaping data to SUR formDear Everybody I'm trying to run a SUR regression and need to reshape my data accordingly. The data…
how can I obtain survival ratio?When I conduct "streg", I always get hazard ratio. However, I would like to obtain survival ratio. I…
Problems Stating a simultaneous GMM 3sls Model using MoptimzeApologies fore the long post that would follow, but I am having error estimating cluster robust 3SLS…
Identify All Values in One Variable that Satisfies a ConditionHi Statalist members, I encounter a difficulty in identifying values in one variable that satisfies…
Merging two datasetsHello! I am working with survey data and want to merge two datasets. One dataset has biographical in…
Subscribe to:
Post Comments (Atom)
0 Response to xtline and standard deviation
Post a Comment