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
Conditional probability after eprobitDear all, I am using eprobit in Stata 15 to estimate a probit regression with endogenous sample sel…
An empirical question of multilevel models; and how to buid a graph like this one in StataDear Statalist, I am using Stata 15.1 and I am estimating a three level model (time nested in firms…
Interpretation of a Relative Risk Ratio in the case of a continuous variable (in log)?Hello everyone I am conducting a mlogit regression with three possible outcomes (the first one bei…
Cubic splines to model relationships between continuous variables and outcomes: a guide for cliniciansFor those interested, I've just come across this interesting article, published on Bone Marrow Trans…
Counting and categorizing the number of adults in the household using survey dataGood day, I am interested in counting and categorizing the number of adults in the household into t…
Subscribe to:
Post Comments (Atom)
0 Response to looping twoway graph on panel dataset
Post a Comment