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
wanted = 1 if cumulative 15 trading days of risk = 1Dear All, I found this question here https://bbs.pinggu.org/thread-7813996-1-1.html。The data set is …
Matching female/male observations with closest values & limiting by year & industryHelp! I am trying to find a male match for each female observations. There are many more male than f…
How to test moderating effect in time series analysis?Hi all, I am beginner in analyzing data with STATA. I have some problem to choose the suitable meth…
Is it ok to apply the inverse hyperbolic sine transformation to one variable and the natural log transformation to other variables?Hi Statalist. I have a conundrum. I have several variables to which I need to apply the log transfor…
Fill up missing string variableHi, I am trying to fill up the missing string variable. The current data is: Code: * Example gene…
Subscribe to:
Post Comments (Atom)
0 Response to looping twoway graph on panel dataset
Post a Comment