Cher Matthieu,
I have an issue with some incompatibilities btw different packages and FixedEffectModels
The one I can't solve gives me the following error :
reg(data, @formula(Y ~ A + L + K)) ## very basic ahah
ERROR: UndefVarError: eachcol not defined
Stacktrace:
[1] evalcontrasts(::DataFrame, ::Dict{Any,Any}) at /Users/thomasbourany/.julia/packages/StatsModels/pBxdt/src/modelframe.jl:124
[2] #ModelFrame2#6(::Dict{Any,Any}, ::Function, ::StatsModels.Terms, ::DataFrame, ::BitArray{1}) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/formula/formula_iv.jl:94
[3] #ModelFrame2 at ./none:0 [inlined]
[4] #reg#30(::Nothing, ::Expr, ::Nothing, ::Nothing, ::Int64, ::Dict{Any,Any}, ::Float64, ::Int64, ::Bool, ::Symbol, ::Bool, ::typeof(reg), ::DataFrame, ::Formula) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/reg.jl:160
[5] reg(::DataFrame, ::Formula) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/reg.jl:48
[6] top-level scope at none:0
I think it has something to do with Compat (before it gave me the following error:
WARNING: both DataFrames and Compat export "eachcol"; uses of it in module StatsModels must be qualified) but now that I removed Compat (and GLM that was using Compat as well, with pkg.rm())
- Moreover, when I add fixed effect (as in your examples) it gives me :
ERROR: MethodError: no method matching length(::Expr)
- When I add the clustering, it even spits out this:
ERROR: UndefVarError: Vcov not defined
reg(data, @formula(Y ~ L + K + fe(time_t) + fe(firm_st)), Vcov.cluster(:time_t, :firm_st))
I feel the three points are linked!
Also, there was an incompatibility with MixedModels that prevented me to even add the package. But this problem was solved when I removed MixedModels
I have Julia v1.0.3 and I also updated most of my packages beforehand.
Sorry if it is something trivial,
Thanks, Merci beaucoup!
Cher Matthieu,
I have an issue with some incompatibilities btw different packages and FixedEffectModels
The one I can't solve gives me the following error :
reg(data, @formula(Y ~ A + L + K)) ## very basic ahah
ERROR: UndefVarError: eachcol not defined
Stacktrace:
[1] evalcontrasts(::DataFrame, ::Dict{Any,Any}) at /Users/thomasbourany/.julia/packages/StatsModels/pBxdt/src/modelframe.jl:124
[2] #ModelFrame2#6(::Dict{Any,Any}, ::Function, ::StatsModels.Terms, ::DataFrame, ::BitArray{1}) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/formula/formula_iv.jl:94
[3] #ModelFrame2 at ./none:0 [inlined]
[4] #reg#30(::Nothing, ::Expr, ::Nothing, ::Nothing, ::Int64, ::Dict{Any,Any}, ::Float64, ::Int64, ::Bool, ::Symbol, ::Bool, ::typeof(reg), ::DataFrame, ::Formula) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/reg.jl:160
[5] reg(::DataFrame, ::Formula) at /Users/thomasbourany/.julia/packages/FixedEffectModels/9HKQv/src/reg.jl:48
[6] top-level scope at none:0
I think it has something to do with Compat (before it gave me the following error:
WARNING: both DataFrames and Compat export "eachcol"; uses of it in module StatsModels must be qualified) but now that I removed Compat (and GLM that was using Compat as well, with pkg.rm())
ERROR: MethodError: no method matching length(::Expr)
ERROR: UndefVarError: Vcov not defined
reg(data, @formula(Y ~ L + K + fe(time_t) + fe(firm_st)), Vcov.cluster(:time_t, :firm_st))
I feel the three points are linked!
Also, there was an incompatibility with MixedModels that prevented me to even add the package. But this problem was solved when I removed MixedModels
I have Julia v1.0.3 and I also updated most of my packages beforehand.
Sorry if it is something trivial,
Thanks, Merci beaucoup!