I estimated the following model before estimating. I need to check the predicted propensity score model to predict out of the sample.
teffects psmatch (savings_all_exp_hh_sh) (mig_hh mean_age hhh_age hh_size sh_eco_active food_exp_sh hh_sh_empincome ///
hh_sh_agrincome hh_tot_income i.sinhala_hh i.hhh_gender 1.hh_mx_edu_1 ///
bus_halt i.area_1 i.floor_1 i.tenure i.natural_calamity ///
land_all_pr ), osample(p_1) vce(iid) gen(po_)
teffects psmatch (savings_all_exp_hh_sh) (mig_hh mean_age hhh_age hh_size sh_eco_active food_exp_sh hh_sh_empincome ///
hh_sh_agrincome hh_tot_income i.sinhala_hh i.hhh_gender 1.hh_mx_edu_1 ///
bus_halt i.area_1 i.floor_1 i.tenure i.natural_calamity ///
land_all_pr ) if p_1==0, osample(p_2) vce(iid) gen(po_)
gen es=e(sample)
predict pscore, ps
To check the ps model I estimated the ps scores in the following alternative way:
local model = e(tmodel)
local tvar = e(tvar)
local cov = e(psvarlist)
`model' `tvar' `cov' if p_1==0
predict ps_logit, pr
I expected the propensity scores estimated as pscore would be equal to ps_logit. But they are not. Can anyone help to understand what's going on ?
Tks,
Billy
Related Posts with teffects - predict pscore, ps
Help with line graphsHello, Could someone kindly help with plotting a graph showing trends of time. This is a study look…
Help with line graphsHello, Could someone kindly help with plotting a graph showing trends of time. This is a study look…
Precision issue- if command doesn't select variable with requested valueshi all, I have a variable (crops_yield) with following kind of observations. The variable type is do…
Rolling Regression to Calculate Abnormal ReturnsHi there, I used the rolling regression with window 12 months to calculate expected Beta and then I …
Esttabl Table Header Edit: 2SLS stages with dependent variable (2 rows)I am using estab to get a regressions summary table as latex table. Here is my code. Code: #delim…
Subscribe to:
Post Comments (Atom)
0 Response to teffects - predict pscore, ps
Post a Comment