Model 1:
Code:
levelsof año, local(años) foreach año of local años { reg lingreso esc experiencia experiencia2 if año == `año' estimate store m1_`año' global modelo1 `modelo1' m1_`año' || global labels `labels' `año' } coefplot `modelo1', keep(esc) vertical bycoefs bylabels(`labels')
Code:
levelsof año, local(años) foreach año of local años { reg lingreso esc experiencia experiencia2 RM mujer emparejado urbano if año == `año' estimate store m2_`año' local modelo2 `modelo2' m2_`año' || local labels `labels' `año' } coefplot `modelo2', keep(esc) vertical bycoefs bylabels(`labels')
Code:
levelsof año, local(años) foreach año of local años { reg lingreso esc experiencia experiencia2 b1a7 b8 m1a3 m4 u1a4 u5mas if año == `año' estimate store m5_`año' local modelo5 `modelo5' m5_`año' || local labels `labels' `año' } coefplot `modelo5', keep(esc) vertical bycoefs bylabels(`labels')
Code:
coefplot (`modelo1', keep(esc) vertical bycoefs bylabels(`labels')) (`modelo2', keep(esc) vertical bycoefs bylabels(`labels')) (`modelo5', keep(esc) vertical bycoefs bylabels(`labels'))
I think it has to do with the use of locals, but i can't figure it out. Thanks.
0 Response to How can i plot estimates of 3 different models (and each model has multiple estimates for time observations)?
Post a Comment