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
age as dummyHello I have a research question involving annual savings by individuals and that I have a panel dat…
r(602) error - package already installed but cannot access ado filesDear all, I have an issue when I try to install the ssc package 'asdoc'. In the past I have always…
How to perform unit root tests for highly unbalanced panel with many time gaps?Dear all, My panel is highly unbalanced, with total observations of 350 and lots of time gaps. Thes…
Categorizing BMI for children under two years old (zbmicat)Hi all, I am looking at the importance of maternal unemployment for child health in a dataset which…
ageHello I have a research question involving annual savings by individuals and that I have a panel dat…
Subscribe to:
Post Comments (Atom)
0 Response to Can not replicate what teffects ipw is doing
Post a Comment