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 add R-squared in -esttab- regression? Code: sysuse auto, clear eststo: regress price weight mpg eststo: regress price weight…
How to drop specific columns and rows in matrix?I created a matrix named "m" with the following commands. Is there a simple way to remove all the r…
How to transfer my string variable to date variable? Code: * Example generated by -dataex-. To install: ssc install dataex clear input str10 week float …
Optimization does not convergeDear All, I have a black-box data generation routine, which depends on three parameters A,B,C. I ge…
problem with multiple if conditionsI am having issues with using multiple if conditions with replace function. I have two variables i.e…
Subscribe to:
Post Comments (Atom)
0 Response to teffects - predict pscore, ps
Post a Comment