We are running two-way fixed effects on R and Stata using the same data, and they are giving different results. The coefficients are not only different but the sign is opposite as well.
In R, the command we're using is:
Code:
feols(log(income) ~ treat + var1 + var2 + var3 | state + year, data=df)
Code:
twfe log_income treat var1 var2 var3, ids(state year) cluster(state)
Thank you!
0 Response to TWFE: Different results between Stata and R
Post a Comment