I recently updated my Julia setup to 1.7.2, along with updating all the packages. I am getting a strange error when running a linear model under both GLM and FixedEffectModels. I get this error only on some specifications. I also tried the same code and data on a different computer (which still has the old version (1.7.1) and packages) and things work fine.
The specifications are below. Test data to replicate the error can be found at [link].
model = reg(df_test, @formula(var1 ~ var2))
model = lm(@formula(var1 ~ var2), df_test)
The error I get is:
ERROR: expansion can't be computed
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] beta_inc_asymptotic_asymmetric(a::Float64, b::Float64, x::Float64, y::Float64, w::Float64, epps::Float64)
@ SpecialFunctions C:\Users\shres\.julia\packages\SpecialFunctions\rNt4H\src\beta_inc.jl:384
[3] _beta_inc(a::Float64, b::Float64, x::Float64, y::Float64)
@ SpecialFunctions C:\Users\shres\.julia\packages\SpecialFunctions\rNt4H\src\beta_inc.jl:865
[4] _beta_inc
@ C:\Users\shres\.julia\packages\SpecialFunctions\rNt4H\src\beta_inc.jl:736 [inlined]
[5] beta_inc
@ C:\Users\shres\.julia\packages\SpecialFunctions\rNt4H\src\beta_inc.jl:729 [inlined]
[6] betaccdf
@ C:\Users\shres\.julia\packages\StatsFuns\dTYga\src\distrs\beta.jl:44 [inlined]
[7] fdistccdf(Ξ½1::Float64, Ξ½2::Float64, x::Float64)
@ StatsFuns C:\Users\shres\.julia\packages\StatsFuns\dTYga\src\distrs\fdist.jl:18
[8] ccdf
@ C:\Users\shres\.julia\packages\Distributions\T2SAc\src\univariates.jl:624 [inlined]
[9] _broadcast_getindex_evalf
@ .\broadcast.jl:670 [inlined]
[10] _broadcast_getindex
@ .\broadcast.jl:643 [inlined]
[11] getindex
@ .\broadcast.jl:597 [inlined]
[12] macro expansion
@ .\broadcast.jl:961 [inlined]
[13] macro expansion
@ .\simdloop.jl:77 [inlined]
[14] copyto!
@ .\broadcast.jl:960 [inlined]
[15] copyto!
@ .\broadcast.jl:913 [inlined]
[16] copy
@ .\broadcast.jl:885 [inlined]
[17] materialize
@ .\broadcast.jl:860 [inlined]
[18] coeftable(mm::LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}}}}; level::Float64)
@ GLM C:\Users\shres\.julia\packages\GLM\gt3bb\src\lm.jl:225
[19] coeftable
@ C:\Users\shres\.julia\packages\GLM\gt3bb\src\lm.jl:222 [inlined]
[20] coeftable(model::StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}}}}, Matrix{Float64}}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(),
Tuple{}}})
@ StatsModels C:\Users\shres\.julia\packages\StatsModels\m1jYD\src\statsmodel.jl:188
[21] coeftable
@ C:\Users\shres\.julia\packages\StatsModels\m1jYD\src\statsmodel.jl:188 [inlined]
[22] show(io::IOContext{Base.TTY}, model::StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}}}}, Matrix{Float64}})
@ StatsModels C:\Users\shres\.julia\packages\StatsModels\m1jYD\src\statsmodel.jl:199
[23] show(io::IOContext{Base.TTY}, #unused#::MIME{Symbol("text/plain")}, x::StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}}}}, Matrix{Float64}})
@ Base.Multimedia .\multimedia.jl:47
[24] (::REPL.var"#43#44"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol("text/plain")}, Base.RefValue{Any}})(io::Any)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:266
[25] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:510
[26] display(d::REPL.REPLDisplay, mime::MIME{Symbol("text/plain")}, x::Any)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:259
[27] display(d::REPL.REPLDisplay, x::Any)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:271
[28] display(x::Any)
@ Base.Multimedia .\multimedia.jl:328
[29] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[30] invokelatest
@ .\essentials.jl:714 [inlined]
[31] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:293
[32] (::REPL.var"#45#46"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:277
[33] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:510
[34] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:275
[35] (::REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:846
[36] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[37] invokelatest
@ .\essentials.jl:714 [inlined]
[38] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\LineEdit.jl:2493
[39] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\Users\shres\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:1232
[40] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL .\task.jl:423
Any suggestions would be appreciated!