Closed jariji closed 2 years ago
I'm trying to figure out how to use fe but it doesn't work how I expected.
fe
using RDatasets, FixedEffectModels diamonds = dataset("ggplot2", "diamonds") reg(diamonds, @formula(Price ~ Carat + fe(Clarity)), Vcov.cluster(:Color)) ERROR: MethodError: no method matching fe(::CategoricalValue{String, UInt8}) Closest candidates are: fe(::GLFixedEffectModel) at ~/.julia/packages/GLFixedEffectModels/Va8dj/src/GLFixedEffectModel.jl:113 fe(::Term) at ~/.julia/packages/GLFixedEffectModels/Va8dj/src/utils/formula.jl:49 fe(::Symbol) at ~/.julia/packages/GLFixedEffectModels/Va8dj/src/utils/formula.jl:50 Stacktrace: [1] (::var"#648#649")(Clarity::CategoricalValue{String, UInt8}) @ Main ./none:0 [2] _broadcast_getindex_evalf @ ./broadcast.jl:670 [inlined] [3] _broadcast_getindex @ ./broadcast.jl:643 [inlined] [4] getindex @ ./broadcast.jl:597 [inlined] [5] copy @ ./broadcast.jl:899 [inlined] [6] materialize @ ./broadcast.jl:860 [inlined] [7] modelcols @ ~/.julia/packages/StatsModels/qY2YS/src/terms.jl:491 [inlined] [8] #38 @ ./none:0 [inlined] [9] iterate @ ./generator.jl:47 [inlined] [10] collect_to!
I'm trying to figure out how to use
fe
but it doesn't work how I expected.