I first use logit to predict the likelihood of observations being treated. Then I calculated Inverse Probability Weighting (ipw) with 1/ipw for treated and 1/(ipw) for controled.
Then I try to run fixed-effect with IPW:
i get the error message "
however, if I run OLS instead, with
there is no error message
does anyone have any idea why this might be?
Then I try to run fixed-effect with IPW:
Code:
xtreg y t x1 x2 x3 [ps=ipw], fe
HTML Code:
weight must be constant within id
Code:
reg y t x1 x2 x3 [ps=ipw]
does anyone have any idea why this might be?