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
How to check correlation among 2000+ variables in a quick way?Hi, all, I had a data set of 2000+ variables (all binary or categorical), for example, 1000+ are …
From SPSS to StataDear All, I need some help in converting a couple of SPSS files to Stata 13. Thanks, Dapel …
Construct equally weighted decile portfolios by ranking stocks on past 3 years volatilityHey dear Members, I have a data sets of about 303 companies with monthly returns of the last 22 yea…
Sublime Text and Stata 16I am trying to use Sublime Text with Stata 16, similar to what I previously did with earlier version…
Plotting a (curvilinear) mediated relationI am working with a mediated-moderated model like that in Fig. 1. All variables in the model are con…
Subscribe to:
Post Comments (Atom)
0 Response to teffects - predict pscore, ps
Post a Comment