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
double integral in MataHey all, I am working on to implement a random effect zip model in Mata. The model includes two ran…
Match observations in a panel datasetI have a panel survey data of each individual's price forecast. In each month, a subset of first-tim…
Linear Models With Many Levels of Fixed Effects( REGHDFE)Dear Stata Members I ran the following panel regression with firm fixed effects(in my case, xtset i…
Pseudo Panel using cohortsi have 3 rounds of cross sectional survey data of firms. i wish to estimate the productivity of the …
Row MeanDear all, I am using Stata 16, on mac. I have taken a snapshot on the panel dataset I am working wi…
Subscribe to:
Post Comments (Atom)
0 Response to Local loop line graph
Post a Comment