FixedEffects / FixedEffectModels.jl

Fast Estimation of Linear Models with IV and High Dimensional Categorical Variables
Other
225 stars 46 forks source link

How can I get the dof? #227

Closed xiaobaaaa closed 1 year ago

xiaobaaaa commented 1 year ago

I want to get the dof of a model, but there is an ERROR: type FixedEffectModel has no field dof.

using DataFrames, RDatasets, FixedEffectModels
df = dataset("plm", "Cigar")
result = reg(df, @formula(Sales ~ NDI + fe(State) + fe(Year)), Vcov.cluster(:State), weights = :Pop)
result.dof
xiaobaaaa commented 1 year ago

Sorry, I update the package, problem solved.

matthieugomez commented 1 year ago

The function dof will be exported to avoid having to access internal fields like this