-
Couldn't load subscription status.
- Fork 49
link to l #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link to l #222
Conversation
|
While this looks good, I am getting these errors from trying this: julia> fm = fit!(GeneralizedLinearMixedModel(@formula(homebound ~ 1 + Run + (1+Run|Id)), df, Normal(), SqrtLink()))
ERROR: ArgumentError: invalid NLopt arguments: zero step size
Stacktrace:
[1] chk(::NLopt.Opt, ::NLopt.Result) at /home/yakir/.julia/packages/NLopt/eqN9a/src/NLopt.jl:237
[2] initial_step! at /home/yakir/.julia/packages/NLopt/eqN9a/src/NLopt.jl:340 [inlined]
[3] NLopt.Opt(::OptSummary{Float64}) at /home/yakir/.julia/packages/MixedModels/eXZQr/src/optsummary.jl:85
[4] #fit!#59(::Bool, ::Bool, ::Int64, ::typeof(fit!), ::GeneralizedLinearMixedModel{Float64}) at /home/yakir/.julia/packages/MixedModels/eXZQr/src/generalizedlinearmixedmodel.jl:182
[5] fit!(::GeneralizedLinearMixedModel{Float64}) at /home/yakir/.julia/packages/MixedModels/eXZQr/src/generalizedlinearmixedmodel.jl:160
[6] top-level scope at REPL[9]:1Maybe specifying a non identity link function is simply not cosher? |
|
The fix for the NLopt error (#201) hasn't landed yet because the test case we have for that depends on the gamma functionality. If we had a good test case that didn't depend on that, I would split the PR and go ahead and get the boundary fit issue in. |
Codecov Report
@@ Coverage Diff @@
## master #222 +/- ##
=======================================
Coverage 92.89% 92.89%
=======================================
Files 18 18
Lines 1295 1295
=======================================
Hits 1203 1203
Misses 92 92
Continue to review full report at Codecov.
|
Can I help with that? I have data that isn't gamma related... |
|
Yes, please. Esp if it's a small dataset (both for repository and speed-of-tests reasons). |
|
I am unsure exactly what this would entail, but here is the CSV for the tiny data-set: |
|
The code to fit the model (so formula, family, link). |
|
A "simple" case: using CSV, DataFrames, MixedModels
df = CSV.File("beetles.csv") |> DataFrame
df = df[!, Not(:outbound)]
fm = fit!(GeneralizedLinearMixedModel(@formula(homebound ~ 1 + Run + (1+Run|Id)), df, Normal(), LogLink()))and more complicated: df = CSV.File("beetles.csv") |> DataFrame
df = stack(df, variable_name = :Direction, value_name = :Speed)
fm = fit!(GeneralizedLinearMixedModel(@formula(Speed ~ 1 + Run * Direction + (1 + Run |Id)), df, Normal(), LogLink())) |
No description provided.