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
Demeaning and standardizing variables in panel regressionHello everyone, I am analyzing a panel data set with 55 countries. My dependent variable is firm eq…
How to do Reality check and SPA test by Stata?Dear Statalist, I want to know whether there are any user written commands by stata for performing R…
Looping regression to determine one set of control variables that make models significantHi everyone, I have one dependent variable Y, four independent variables X1 X2 X3 X4, 12 control va…
No constant in fixed-effect regressionDear all: Hope you are doing well and healthy. I am writing to ask a quick question about the fixed…
Topic impact access to microfinancial institution for ensuring consumption because of health shock : omitted because of collinearityIam currently writing for my undergraduated thesis. I have large panel data in year 2007 and 2014. m…
Subscribe to:
Post Comments (Atom)
0 Response to Can not replicate what teffects ipw is doing
Post a Comment