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
Merging multiple observations per time in panel data.Dear all, I have a panel datatset of 74 countries with multiple daily observations. I have also fou…
How to import extra-large excel file into STATA?I want to open an EXCEL file with more than 40GM in STATA, and I used the following command "import …
Comparing coefficients from different Event Study specificationsHi all, I aim at estimating the effect of job loss on the labor supply of the spouse using an event…
the creation of the matrix of each neighboring countryHello to all For my panel data set whose unit of analysis is country, I would like to identify the n…
Adding a line for observations in the -collect- systemHello, I am sure this must be trivial, but I have had no luck with it so far. I am trying the new -…
Subscribe to:
Post Comments (Atom)
0 Response to looping twoway graph on panel dataset
Post a Comment