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.
rPosteriorPredictive(obj, ...)A "BayesianBrick" object used to select a method.
further arguments passed to or from other methods.
a matrix or vector of random samples
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 ...