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
Metaprop meta analysis, Variance of the synthesized proportion.Hi All, I am using metaprop to meta-analyse proportions from 8 studies using a random effects appro…
regress to rangestat or rangerunHi all, I am trying to run below regression by intervals and years on the whole sample with rangest…
Estpost for summary statistics with complex design survey dataHi , I am working on quarterly Labor Force Survey from 2008 to 2010 . I would like to create a tabl…
Estpost for summary statistics with complex design survey dataHi , I am working on quarterly Labor Force Survey from 2008 to 2010 . I would like to create a tabl…
Predict residual error after oprobit regressionHello, We are trying to generate the residuals after running an oprobit regression. Our dataset cons…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble plotting standard deviation - Sigma convergence
Post a Comment