We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
performance::check_model works with 0.10.5
performance::check_model
packageVersion("performance") #> [1] '0.10.5' tot <- rep(10, 100) suc <- rbinom(100, prob = 0.9, size = tot) df <- data.frame(tot, suc) df$prop <- suc/tot mod1 <- glm(prop ~ 1 , family = binomial, data = df, weights = tot) performance::check_model(mod1)
Created on 2023-10-29 with reprex v2.0.2
but fails with 0.10.7
packageVersion("performance") #> [1] '0.10.7' tot <- rep(10, 100) suc <- rbinom(100, prob = 0.9, size = tot) df <- data.frame(tot, suc) df$prop <- suc/tot mod1 <- glm(prop ~ 1 , family = binomial, data = df, weights = tot) performance::check_model(mod1) #> Error: `check_model()` not implemented for models of class `glm` yet.
The problem seems to come from the new version.
With debug(performance:::.check_assumptions.glm), I find
debug(performance:::.check_assumptions.glm)
binned_residuals(model, ...) Error in stats::binom.test(sum(y0[items]), n) : 'n' must be a positive integer >= 'x'
The text was updated successfully, but these errors were encountered:
Fix #646
56fed78
Successfully merging a pull request may close this issue.
performance::check_model
works with 0.10.5Created on 2023-10-29 with reprex v2.0.2
but fails with 0.10.7
Created on 2023-10-29 with reprex v2.0.2
The problem seems to come from the new version.
With
debug(performance:::.check_assumptions.glm)
, I findThe text was updated successfully, but these errors were encountered: