powered by
BGGM
Perform posterior predictive checks with the help of the bayesplot package (with code taken from brms).
# S3 method for estimate pp_check(object, iter, type = "stat", ...)
object of of class estimate
estimate
number of posterior samples used
type of ppc plot. (type = "xyz" provides a list of suppored types)
type = "xyz"
currently ignored
further details are provided here PPC
PPC
# NOT RUN { # data Y <- bfi[,1:5] # fit model fit <- estimate(Y) pp_check(fit, iter = 50, type = "stat") # }
Run the code above in your browser using DataLab