From 8c56ed29e71efd6ce08f65c683343f1cfc503a42 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 25 Feb 2022 19:03:29 +0100 Subject: [PATCH] #376 --- R/check_model.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/check_model.R b/R/check_model.R index ac7caf27d..4ac75ec1c 100644 --- a/R/check_model.R +++ b/R/check_model.R @@ -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") @@ -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) }