Hi!
I'm running a thousand simulations for two different regressions and the code goes as:
forvalues i = 1/1000 {
teffects ra (y edad_centrada experiencia_centrada) (tratamiento), atet
local att1 = _b[tratamiento]
replace att_est_1 = `att1' in `i'
teffects ra (y edad_centrada edad_sq experiencia_centrada experiencia_sq edad_x_exp) (tratamiento), atet
local att2 = _b[tratamiento]
replace att_est_2 = `att2' in `i'
}
Tratamiento is my treatment value but every time that I try to run the code, I get the error "Tratamiento not found" and I can't wrap my head around it. Any help?
Thanks!
I'm running a thousand simulations for two different regressions and the code goes as:
forvalues i = 1/1000 {
teffects ra (y edad_centrada experiencia_centrada) (tratamiento), atet
local att1 = _b[tratamiento]
replace att_est_1 = `att1' in `i'
teffects ra (y edad_centrada edad_sq experiencia_centrada experiencia_sq edad_x_exp) (tratamiento), atet
local att2 = _b[tratamiento]
replace att_est_2 = `att2' in `i'
}
Tratamiento is my treatment value but every time that I try to run the code, I get the error "Tratamiento not found" and I can't wrap my head around it. Any help?
Thanks!
Comment