View source: R/pp_check.greta_array.r
pp_check.greta_array | R Documentation |
greta_array
objectPerform prior predictive checks with the help of the package bayesplot
## S3 method for class 'greta_array' pp_check(y, nsim = 100, ndraw = 10, ...)
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. |
A ggplot object that can be further modified using the ggplot2 package.
## Not run: x <- normal(0, 2) # default use pp_check(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.