I'm trying to do it with this code, but it doesn't work for me
foreach i of numlist 1/8 {
twoway (line enrollmentc`i' completedc`i', ///
title("Evolución de cursos matriculados y completados para cada subvariable") ///
xlabel("Iteraciones") ///
ylabel("Número de cursos") ///
ytitle("Número de cursos", format(%2.2f)) ///
legend(label(1 "Matriculados") label(2 "Completados")) ///
if t_1==1 | t_2==1), ///
title("") ///
xlabel("") ///
ylabel("") ///
legend(off)
}
What I expect the graph to record are the percentages for each of those 8 courses for the completedc and enrollmentc variable for 3 scenarios, the first when t_1==1 | t_2==1, for the second scenario when treatment==1 and for the second scenario when treatment==2
foreach i of numlist 1/8 {
twoway (line enrollmentc`i' completedc`i', ///
title("Evolución de cursos matriculados y completados para cada subvariable") ///
xlabel("Iteraciones") ///
ylabel("Número de cursos") ///
ytitle("Número de cursos", format(%2.2f)) ///
legend(label(1 "Matriculados") label(2 "Completados")) ///
if t_1==1 | t_2==1), ///
title("") ///
xlabel("") ///
ylabel("") ///
legend(off)
}
What I expect the graph to record are the percentages for each of those 8 courses for the completedc and enrollmentc variable for 3 scenarios, the first when t_1==1 | t_2==1, for the second scenario when treatment==1 and for the second scenario when treatment==2
Comment