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

Error in check_model(<glmer>) #723

Closed
mattansb opened this issue May 19, 2024 · 3 comments
Closed

Error in check_model(<glmer>) #723

mattansb opened this issue May 19, 2024 · 3 comments
Labels
waiting for response 💌 Need more information from people who submitted the issue

Comments

@mattansb
Copy link
Member

library(lme4)

gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
             family = binomial("logit"),
              data = cbpp)

performance::check_model(gm1)
#> Error in `fortify()`:
#> ! `data` must be a <data.frame>, or an object coercible by `fortify()`, or a valid <data.frame>-like object
#>   coercible by `as.data.frame()`.
#> Caused by error in `.prevalidate_data_frame_like_object()`:
#> ! `dim(data)` must return an <integer> of length 2.
#> Run `rlang::last_trace()` to see where the error occurred.
@strengejacke
Copy link
Member

Do you have a session info? Works fine for me.

library(lme4)
#> Loading required package: Matrix
gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
             family = binomial("logit"),
              data = cbpp)

performance::check_model(gm1)

Created on 2024-05-20 with reprex v2.1.0

@strengejacke
Copy link
Member

And please

Run rlang::last_trace()

@strengejacke strengejacke added the waiting for response 💌 Need more information from people who submitted the issue label May 20, 2024
@mattansb
Copy link
Member Author

Updated packages and it works 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for response 💌 Need more information from people who submitted the issue
Projects
None yet
Development

No branches or pull requests

2 participants