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
Citing a methodological strategy found in a Statalist thread?Dear Statalist users, A few months ago I came across a discussion of a methodological strategy in o…
reshape of nested dataDear all, I tried to reshape the following nested data into long-year wide-series: Code: * Exampl…
Trouble adding statistic to esttab latex tableHello all. I am trying to add additional statistics to a latex table using the user-written command …
Stata Regression Help Using Fixed Effects and Cluster of Standard ErrorsHi all, I am looking to create a regression to determine the relationship between large increases i…
Question about svy: meanHello, this question is conceptual as much as anything else: when I run svy: mean var1 var2 var3, th…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble plotting standard deviation - Sigma convergence
Post a Comment