Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 25, 2022
1 parent cc79b61 commit 8c56ed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/check_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ check_model.model_fit <- function(x,
threshold <- NULL
}
dat$INFLUENTIAL <- .influential_obs(model, threshold = threshold)
dat$PP_CHECK <- tryCatch(check_predictions(model), error = function(e) NULL)

dat <- datawizard::compact_list(dat)
class(dat) <- c("check_model", "see_check_model")
Expand All @@ -243,6 +244,7 @@ check_model.model_fit <- function(x,
threshold <- NULL
}
dat$INFLUENTIAL <- .influential_obs(model, threshold = threshold)
dat$PP_CHECK <- tryCatch(check_predictions(model), error = function(e) NULL)
if (isTRUE(model_info$is_binomial)) {
dat$BINNED_RESID <- binned_residuals(model)
}
Expand Down

0 comments on commit 8c56ed2

Please sign in to comment.