From 545aafa9634659a7513295e740f653430b093970 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 29 Mar 2024 20:50:29 +0100 Subject: [PATCH] fix --- R/check_predictions.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/check_predictions.R b/R/check_predictions.R index 4d7280012..550d3568c 100644 --- a/R/check_predictions.R +++ b/R/check_predictions.R @@ -161,6 +161,8 @@ check_predictions.stanreg <- function(object, "to create posterior prediction plots for Stan models" ) + resp_string <- insight::find_terms(object)$response + if (inherits(object, "brmsfit")) { out <- as.data.frame(bayesplot::pp_check(object, type = type, ndraws = iterations, ...)$data) } else {