Skip to content
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

ranef(; named=true) doesn't work for GeneralizedLinearMixedModel #499

Closed
stefanjwojcik opened this issue Mar 31, 2021 · 1 comment · Fixed by #507
Closed

ranef(; named=true) doesn't work for GeneralizedLinearMixedModel #499

stefanjwojcik opened this issue Mar 31, 2021 · 1 comment · Fixed by #507

Comments

@stefanjwojcik
Copy link

I love this package, kudos to you all for writing such a great addition to the Julia community.

Here is my issue. After fitting a GLMM, the ranef() doesn't work as expected with the named=true argument, and it seems that this functionality should work for this kind of model. For context, I found it works as expected for a simple LMM.

Here is reproducible code:
df = DataFrame(y = rand([0,1], 1000), mycat = rand(["hey", "this", "test"], 1000))

mod = fit!(GeneralizedLinearMixedModel(@formula(y ~ (1|mycat)), df, Bernoulli() ), fast=true)

ranef(mod; named=true)

Error:
MethodError: no method matching ranef(::GeneralizedLinearMixedModel{Float64}; named=true)

@palday
Copy link
Member

palday commented Apr 12, 2021

named=true isn't supported in MixedModels 3.x, though there is a lingering documentation error. Use raneftables instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants