Hello, I am trying to make a line graph with 25 lines, one for each department, but I keep getting 25 graphs with one line each. I want to find a way to make the one line graph or a way to overlay or overlap the 25 graphs. thank you in advance
forvalues i = 1(1)25 {
local lines line g_math año if departamento==`i'
#delimit ;
twoway
(`lines'),
xlabel(2008[1]2016)
legend(off)
ti("Evolución de puntajes")
subti("Promedio a nivel departamento-año")
yti("Puntaje en matemática (año base 2014)")
xti("Año")
xsize(7)
ysize(10);
#delimit cr
graph save graf`i' , replace
}
Related Posts with Local loop line graph
different 'Beta' values in the same Effect coding in regressionI have entered a categorial variable (country) to a regression and I coded their values in Effect co…
How to find the index of the observation that has the maximum value of a variableHello, I have two questions: - Is there easy way to retrieve the index of the observation that has t…
Reshaping multiple variables at onceHi All, I have data that resembles the following: Code: * Example generated by -dataex-. To insta…
Multiple imputation when there is a certain group that did not answer a certain questionHello Statalist, I have a general question about multiple imputations method in Stata. There are mu…
Finding the values behind encodeHi All, I am working with two rounds of survey data, that interviews individuals across different s…
Subscribe to:
Post Comments (Atom)
0 Response to Local loop line graph
Post a Comment