-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
It seems that if you don't specify the intercept as a fixed effect, residuals can't be retrived. The following is a MWE:
df = DataFrame(a = rand(100), b = rand(100), c = rand(100), d = ones(100))
ols = FixedEffectModels.reg(df, @formula(a ~ b + c), save = true)
residuals(ols) # this gives error
ols = FixedEffectModels.reg(df, @formula(a ~ b + c + fe(d)), save = true)
residuals(ols) #this works fineMaybe it's worth making this remark on the documentation, rather than fixing it? After all, it's a package for the inclusion of fixed effects. But sometimes you want to compare results with a simple OLS.
Metadata
Metadata
Assignees
Labels
No labels