Dear Statalist,
I'm using ebalance (from SSC) for entropy balancing, I wonder how to apply xtreg after I obtain _webal?
What I did
and I get
I also tried pweight and fweight, but still get the same message that weight must be constant within firm. The examples I saw all use reg rather than xtreg. If I want want to run two-way fixed effects model after entropy balancing, how can I achieve this?
Thanks a lot for any suggestions!
I'm using ebalance (from SSC) for entropy balancing, I wonder how to apply xtreg after I obtain _webal?
What I did
Code:
ebalance treat controls, targets(3) keep(baltable) replace xtreg y treat controls i.year [aw=_webal] ,fe vce(cluster firm)
Code:
weight must be constant within firm r(199);
Thanks a lot for any suggestions!
Comment