Learn R Programming

bbricks (version 0.1.1)

dPosteriorPredictive: Get the density value of the posterior predictive distribution

Description

This is a generic function that will generate the the density value of the posterior predictive distribution. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) get the probability density/mass of the posterior predictive distribution of a new sample x_new: p(x_new|gamma).

Usage

dPosteriorPredictive(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

numeric, the density value

See Also

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