Hi, I am new to Julia and trying to work with FixedEffectModels.jl but I am unable to get it to work without throwing the following error:
MethodError: no method matching stderror(::FixedEffectModel)
I have tried uninstalling and re-installing Julia versions 1.6 and 1.7 both. I have also tried reinstalling all packages multiple times. Here is a minimum working example:
using DataFrames, FixedEffectModels, GLM
df = DataFrame(a=1:10, b=11:20)
lm(@formula(a~b), df)
reg(df, @formula(a~b))
While lm
from the GLM package works fine, reg
throws the following error
ERROR: MethodError: no method matching stderror(::FixedEffectModel)
Closest candidates are:
stderror(::Union{StatsModels.TableRegressionModel, StatsModels.TableStatisticalModel}, ::Any...; kwargs...) at /Users/ssaxena/.julia/packages/StatsModels/m1jYD/src/statsmodel.jl:28
stderror(::GLM.LinPredModel) at /Users/ssaxena/.julia/packages/GLM/gt3bb/src/linpred.jl:231
Stacktrace:
[1] show(io::IOContext{Base.TTY}, x::FixedEffectModel)
@ FixedEffectModels ~/.julia/packages/FixedEffectModels/0oavj/src/FixedEffectModel.jl:204
[2] show(io::IOContext{Base.TTY}, #unused#::MIME{Symbol("text/plain")}, x::FixedEffectModel)
@ Base.Multimedia ./multimedia.jl:47
[3] (::REPL.var"#38#39"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol("text/plain")}, Base.RefValue{Any}})(io::Any)
@ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:220
[4] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:462
[5] display(d::REPL.REPLDisplay, mime::MIME{Symbol("text/plain")}, x::Any)
@ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:213
[6] display(d::REPL.REPLDisplay, x::Any)
@ REPL /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:225
[7] display(x::Any)
@ Base.Multimedia ./multimedia.jl:328
[8] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[9] invokelatest
@ ./essentials.jl:706 [inlined]
[10] (::VSCodeServer.var"#58#62"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/eval.jl:176
[11] withpath(f::VSCodeServer.var"#58#62"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/repl.jl:185
[12] (::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/eval.jl:153
[13] hideprompt(f::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/repl.jl:36
[14] (::VSCodeServer.var"#56#60"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/eval.jl:124
[15] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:491
[16] with_logger
@ ./logging.jl:603 [inlined]
[17] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/eval.jl:201
[18] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[19] invokelatest(::Any)
@ Base ./essentials.jl:706
[20] macro expansion
@ ~/.vscode/extensions/julialang.language-julia-1.5.11/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
[21] (::VSCodeServer.var"#53#54")()
@ VSCodeServer ./task.jl:411
Any helpful suggestions would be much appreciated!