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:
Code:
xtreg y t x1 x2 x3 [ps=ipw], fe
i get the error message "
HTML Code:
weight must be constant within id
however, if I run OLS instead, with
Code:
 reg y t x1 x2 x3 [ps=ipw]
there is no error message

does anyone have any idea why this might be?