diff --git a/DESCRIPTION b/DESCRIPTION index 5998603cd..cf473fc57 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: performance Title: Assessment of Regression Models Performance -Version: 0.11.0.2 +Version: 0.11.0.3 Authors@R: c(person(given = "Daniel", family = "Lüdecke", diff --git a/NAMESPACE b/NAMESPACE index 2ecdbf751..7a20bd1dc 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -113,8 +113,10 @@ S3method(check_overdispersion,performance_simres) S3method(check_overdispersion,poissonirr) S3method(check_overdispersion,poissonmfx) S3method(check_predictions,BFBayesFactor) +S3method(check_predictions,brmsfit) S3method(check_predictions,default) S3method(check_predictions,lme) +S3method(check_predictions,stanreg) S3method(check_residuals,DHARMa) S3method(check_residuals,default) S3method(check_residuals,performance_simres) diff --git a/NEWS.md b/NEWS.md index 805cb0dbd..cc98ea105 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ * `check_model()` gets a `base_size` argument, to set the base font size for plots. +* `check_predictions()` for `stanreg` and `brmsfit` models now returns plots in + the usual style as for other models and no longer returns plots from + `bayesplot::pp_check()`. + # performance 0.11.0 ## New supported models diff --git a/R/check_predictions.R b/R/check_predictions.R index 6a7654096..4960f6966 100644 --- a/R/check_predictions.R +++ b/R/check_predictions.R @@ -128,6 +128,7 @@ check_predictions.default <- function(object, ) } + #' @export check_predictions.stanreg <- function(object, iterations = 50, @@ -194,6 +195,10 @@ check_predictions.stanreg <- function(object, out } +#' @export +check_predictions.brmsfit <- check_predictions.stanreg + + #' @export check_predictions.BFBayesFactor <- function(object, iterations = 50,