Learn R Programming

bbricks (version 0.1.1)

MPE: Get the Mean Posterior Estimate(MPE) of a "BayesianBrick" object

Description

This is a generic function that will generate the MPE estimate of a given "BayesianBrick" object. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) MPE esitmate of theta is theta_MAP = E(theta|gamma,x), E() is the expectation function.

Usage

MPE(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

A list of MPE estimates

See Also

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