Hi,
I want to compute ate and atet using inverse probability weighting (ipw).
So I use a Stata example:
use http://www.stata-press.com/data/r15/cattaneo2
teffects ipw (bweight) (mbsmoke mmarried c.mage##c.mage fbaby medu, probit)
This gives me an ATE of -230.6886
Now I want to replicate what Stata is doing for me:
qui probit mbsmoke mmarried c.mage##c.mage fbaby medu
predict ps_score
gen a=((mbsmoke-ps_score)*bweight)/(ps_score*(1-ps_score))
tabsat a, stats(mean)
This gives me an ATE of -313.0509.
So I am not quite sure what teffects ipw exactly is doing. I can see that it gives me the same propensity score by using the post command predict, pr - but I can not obtain the ipw to se what is going wrong.
Hope someone can help
Peter
Related Posts with Can not replicate what teffects ipw is doing
Interpretation of Competing Risk with stcrregI'm new to using competing risk analysis and want to make sure I'm interpreting and using it correct…
Combining variables in the variable list by countryI am looking at the dataset where I have three variable lists: life expectancy by country for specif…
Calculating differences between adjacent elementsDear all, I wonder if there is any easy solution available in Mata for calculating the difference be…
save regression results for margins plotingMy question is straightforward. Could Stata save regression results so that I do not have to re-run …
Estimate the difference-in-differences estimatorHi, I restricted my wave sample from 1-10 to 9-10 and I was wondering how would i use the command b…
Subscribe to:
Post Comments (Atom)
0 Response to Can not replicate what teffects ipw is doing
Post a Comment