Learn R Programming

BGGM (version 1.0.0)

pp_check.estimate: Posterior Predictive Checks for BGGM Objects

Description

Perform posterior predictive checks with the help of the bayesplot package (with code taken from brms).

Usage

# S3 method for estimate
pp_check(object, iter, type = "stat", ...)

Arguments

object

object of of class estimate

iter

number of posterior samples used

type

type of ppc plot. (type = "xyz" provides a list of suppored types)

...

currently ignored

Details

further details are provided here PPC

Examples

Run this code
# 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