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
Marginal effects out of rangeDear all, I would like to know your opinion about an apparently strange (to me) result: I run a sim…
Generate dummy = 1 based on other observationsDear Statalisters, I need a dummy variable that = 1 based on other observations of my dataset. I f…
I need your help with cohortsThese questions are part of a project I'm working on.I'm pretty new to Stata,so would appreciate det…
Binary Logit Regression - Interpreting ResultsHi all, I am using panel data and I am trying to run a logistic regression with a binary dependent …
Fixed Effects ModelsI am not sure if this is the right venue for the question, but I'll give it a try. I am estimating t…
Subscribe to:
Post Comments (Atom)
0 Response to Local loop line graph
Post a Comment