easystats / performance

:muscle: Models' quality and performance metrics (R2, ICC, LOO, AIC, BF, ...)
https://easystats.github.io/performance/
GNU General Public License v3.0
1.01k stars 87 forks source link

Error in `check_model(<glmer>)` #723

Closed mattansb closed 4 months ago

mattansb commented 4 months ago
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 commented 4 months ago

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 commented 4 months ago

And please

Run rlang::last_trace()

mattansb commented 4 months ago

Updated packages and it works 😅