Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 16, 2024
1 parent d9e22e8 commit 825d456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/check_model_diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,10 @@
.new_diag_overdispersion <- function(model, ...) {
faminfo <- insight::model_info(model)

Check warning on line 297 in R/check_model_diagnostics.R

View check run for this annotation

Codecov / codecov/patch

R/check_model_diagnostics.R#L297

Added line #L297 was not covered by tests

d <- data.frame(Predicted = stats::predict(model, type = "response"))
simres <- simulate_residuals(model, ...)
predicted <- simres$fittedPredictedResponse

Check warning on line 300 in R/check_model_diagnostics.R

View check run for this annotation

Codecov / codecov/patch

R/check_model_diagnostics.R#L299-L300

Added lines #L299 - L300 were not covered by tests
# d <- data.frame(Predicted = stats::predict(model, type = "response"))
d <- data.frame(Predicted = predicted)

Check warning on line 302 in R/check_model_diagnostics.R

View check run for this annotation

Codecov / codecov/patch

R/check_model_diagnostics.R#L302

Added line #L302 was not covered by tests

# residuals based on simulated residuals - but we want normally distributed residuals
d$Residuals <- stats::residuals(simres, quantileFunction = stats::qnorm, ...)
Expand Down

0 comments on commit 825d456

Please sign in to comment.