Learn R Programming

bbricks (version 0.1.1)

rPosteriorPredictive: Generate random samples from the posterior predictive distribution

Description

This is a generic function that will generate random samples from the posterior predictive distribution. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) generate x_new from the posterior predictive distribution of x|gamma.

Usage

rPosteriorPredictive(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

a matrix or vector of random samples

See Also

rPosteriorPredictive.GaussianNIW for Gaussian-NIW conjugate structure, rPosteriorPredictive.GaussianNIG for Gaussian-NIG conjugate structure, rPosteriorPredictive.CatDirichlet for Categorical-Dirichlet conjugate structure, rPosteriorPredictive.CatDP for Categorical-DP conjugate structure ...