pp_check.greta_array: Prior Predictive Checks for 'greta_array' object

View source: R/pp_check.greta_array.r

pp_check.greta_arrayR Documentation

Prior Predictive Checks for greta_array object

Description

Perform prior predictive checks with the help of the package bayesplot

Usage

## S3 method for class 'greta_array'
pp_check(y, nsim = 100, ndraw = 10, ...)

Arguments

y

A greta_array object generated from the greta::distributions function

nsim

A numeric, the number of prior simulations per draw, default is 100

ndraw

A numeric, the number of draws, default is 10

...

Further arguments passed to bayesplot::ppc_dens_overlay, check the possibilities there.

Value

A ggplot object that can be further modified using the ggplot2 package.

Examples

## Not run: 
x <- normal(0, 2)

# default use
pp_check(x)

## End(Not run)


lionel68/greta.checks documentation built on July 30, 2022, 11:39 a.m.