Hi,
I am new to Stata and have been trying to plot the standard deviation of my whole sample and that of one subgroup.
This is my code:
bysort year: egen y_sd=sd(y)
by year: egen y_sd_EU15=sd(y) if EU15==1
label var y_sd "Standard deviation of real GDP per capita"
label var y_sd_EU6 "Standard deviation of real GDP per capita - EU15"
tsline y_sd y_sd_EU15 if year>=1995, xlabel (1995(10)2018)
After the bysort command "type mismatch" pops up.
Could someone please help?
Kat
Related Posts with Trouble plotting standard deviation - Sigma convergence
How draw a number from a given vector of distribution?Hello everyone, and happy new year! I searched everywhere for an answer but could not find any, so …
xtabond2 question on large N small TI am in the process of running two different xtabond2 models, and have a question regarding the spec…
New version of parmest on SSCThanks as always to Kit Baum, a new version of the parmest package is now available for download fro…
New version of bmjcip on SSCThanks once again to Kit Baum, a new version of the bmjcip package is now availabel for download on …
New version of xcontract (YET AGAIN) on SSCThanks yet again to Kit Baum, a new version of the xcontract package (superseding last year's versio…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble plotting standard deviation - Sigma convergence
Post a Comment