Closed Gkreindler closed 1 year ago
Thanks. I can't replicate this right now (on Mac), but it may be due to a missing dependency. Which version of StatsModels (if any) do you have installed?
Thank you. I do not have StatsModels
! Adding it and running using StatsModels
before trying to precompile GLFixedEffectModels
still doesn't work.
Could you try the following?
] add https://github.com/jmboehm/GLFixedEffectModels.jl#precompile-and-speed
I was able to uninstall the current version, install the commit you shared, and close and re-open Julia, but it still gives the same error (below).
could the issue be the following?
julia> using StatsModels
julia> StatsModels.omitsintercept
omitsintercept (generic function with 2 methods)
julia> omitsintercept
ERROR: UndefVarError: omitsintercept not defined
[ Info: Precompiling GLFixedEffectModels [bafb0ae5-e5f5-5100-81b6-6a55d777c812]
ERROR: LoadError: UndefVarError: omitsintercept not defined
Stacktrace:
[1] nlreg(df::Any, formula::StatsModels.FormulaTerm, distribution::Distributions.Binomial{Float64}, link::GLM.LogitLink, vcov::StatsBase.CovarianceEstimator; weights::Union{Nothing, Symbol}, subset::Union{Nothing, AbstractVector}, start::Union{Nothing, AbstractVector}, maxiter_center::Int64, maxiter::Int64, contrasts::Dict{Symbol, Any}, dof_add::Int64, save::Vector{Symbol}, method::Symbol, drop_singletons::Bool, double_precision::Bool, dev_tol::Float64, rho_tol::Float64, step_tol::Float64, center_tol::Float64, separation::Vector{Symbol}, separation_mu_lbound::Float64, separation_mu_ubound::Float64, separation_ReLU_tol::Float64, separation_ReLU_maxiter::Int64, vcovformula::Union{Nothing, Expr, Symbol}, subsetformula::Union{Nothing, Expr, Symbol}, verbose::Bool)
@ GLFixedEffectModels C:\Users\Gabriel Kreindler\.julia\packages\GLFixedEffectModels\rCDDJ\src\fit.jl:93
Thanks. It's strange: when I do
using StatsModels
the omitsintercept
function gets exported and I can use it without referring to the StatsModels
module. (This is with StatsModels 0.7.2.)
I've updated the precompile-and-speed
branch with code that explicitly has StatsModels.omitsintercept
. Let me know if it works now. If not, tbh i'm running out of ideas...
Ah, ok, I had StatsModels
v0.6.33
, and this issue
(tj_env_gk) pkg> status --outdated
Status `C:\git-repos\jakarta-optimal-bus-nets\onemodel-versions\v7\tj_env_gk\Project.toml`
⌃ [324d7699] CategoricalArrays v0.9.7 (<v0.10.8)
⌃ [a93c6f00] DataFrames v1.3.6 (<v1.5.0)
⌃ [9d5cd8c9] FixedEffectModels v1.8.0 (<v1.9.2)
⌅ [2913bbd2] StatsBase v0.33.21 (<v0.34.0): FixedEffectModels, FixedEffects, GLFixedEffectModels, LsqFit, Optim, RegressionTables, StatsModels, Vcov
⌅ [3eaba693] StatsModels v0.6.33 (<v0.7.2): FixedEffectModels, RegressionTables
Removing RegressionTables
makes everything work (with simply ] add GLFixedEffectModels
. Adding RegressionTables
again gives this:
⌅ [3eaba693] ↓ StatsModels v0.7.2 ⇒ v0.6.33
(and GLFixedEffectModels
again fails to precompile)
So perhaps that may be the issue? Or I may be doing something wrong.
Thank you for all your help!!
Thanks-- for me it works even with StatsModels 0.6.33, so this is hard to debug for me. But it sounds like this is a (temporary) fix, so I'm closing this (please reopen if you think it's not). RegressionTables should soon be updated to work with StatsModels 0.7.
I've tagged a new version, 0.5.1, which should be merged into the General registry soon, so you can switch back to that one.
I get an error while trying to precompile v0.5:
I just run
I have Julia 1.8.1 on Windows 11, just ran
]update
, and everything works ok with v0.4 (using]add FLFixedEffectModels@0.4
)