Dear Sirs,
I have a panel of 21 countries over 45 years.
I am trying to graph this:
foreach i of num 1/21 {
twoway qfit y x if country == `i', name(y_`i')
}
The problem is that Stata names each graph as y_`i' , where `i' is the number associated to each country.
Instead of y_`i' I need STATA to name the graph y_"country" , where "country" is the name of the country associated to each `i' .
I really appreciate any help on this.
Best,
Lorenzo
Related Posts with looping twoway graph on panel dataset
Estimating Intergenerational Correlation (IGC) with nlcomDear Statalisters, I am trying to estimate the Intergenerational Correlation (IGC) in education usi…
spmap optionsHello, I used -spmap- to map US employment and this is the code I used: Code: spmap cbp_emp_sum u…
apc modelHi, I want to estimate the following model: log_income = B*age with year and cohort fixed effects. I…
New version of xcontract )AGAIN) on SSCThanks once again to Kit Baum, a new version of the xcontract package (superseding yesterday's versi…
Overlapping values on y axis in Stata graphArray Hi, is there a way to avoid overlapping of numbers on the y axis …
Subscribe to:
Post Comments (Atom)
0 Response to looping twoway graph on panel dataset
Post a Comment