Closed mdkeehan closed 7 months ago
I am not sure this is an error. The definition of r2 is ambiguous in the absence of an intercept FixedEffectModels reports the same thing as Stata.
See also: https://github.com/FixedEffects/FixedEffectModels.jl/issues/173
Hello, Thank you for writing this package I wanted to use it as a go faster drop in replacement for the GLM.jl package. As a test I tried fitting the same model using both GLM and FixedEffectsModels and noticed differences in the R^2 reported. I have tried to replicate the difference in a minimum working example which I have attached. I have only been able to show a small difference which comes down to the following:
@formula(obs~0+year+treatment)
vs@formula(obs~0+year+fe(treatment))
. It may be that my understanding of the the statistical model difference between the two formula is incomplete in which case a faq or a note in the documentation may help someone in the future. Here is my small working example which I hope might be the basis for a test.