Learn R Programming

bbricks (version 0.1.1)

MAP: Get the Maximum A Posteriori(MAP) estimate of a "BayesianBrick" object

Description

This is a generic function that will generate the MAP estimate of a given "BayesianBrick" object. For the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) MAP esitmate of theta is theta_MAP = argmax_theta p(theta|gamma,x).

Usage

MAP(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

A list of the MAP estimates

See Also

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