pp_check for loo statistics
get_ppc_plot(fit, type, y, yrep, nsamples, draws = NULL, ...)
A ggplot2
object returned by tidybayes::ppc_*(y, yrep, ...)
.
A string
One of bayesplot::available_ppc("grouped", invert = TRUE) %>% stringr::str_remove("ppc_")
Response vector
S X N matrix of predicted responses
Number of draws. Note that you may want to use all data for summary geoms.
e.g., pp_check(fit, type = "ribbon", nsamples = NULL)
.
(required for loo-type plots) Indices of draws to use.
Arguments passed to bayesplot::ppc_type(y, yrep, ...)
Jonas Kristoffer Lindeløv jonas@lindeloev.dk