Learn R Programming

bbricks (version 0.1.1)

marginalLikelihood_bySufficientStatistics: Get the marginal likelihood of a "BayesianBrick" object

Description

This is a generic function that will generate the marginal likelihood of a set of observations conditioned on a given "BayesianBrick" object. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) Marginal likelihood is p(X|gamma), p() is the probability density/mass function for contunious/discrete X.

Usage

marginalLikelihood_bySufficientStatistics(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

numeric, the marginal likelihood

See Also

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