Learn R Programming

bbricks (version 0.1.1)

posteriorDiscard: update the prior distribution with sufficient statistics

Description

Contrary to posterior(), posteriorDiscard() a generic function that will update the prior distribution of a "BayesianBrick" object by removing the information provided by the observation's sufficient statistics. i.e. for the model structure: theta|gamma ~ H(gamma) X|theta ~ F(theta) update gamma to gamma_posterior by removing the information of X from gamma

Usage

posteriorDiscard(obj, ...)

Arguments

obj

A "BayesianBrick" object used to select a method.

...

further arguments passed to or from other methods.

Value

None, or an error message if the update fails.

See Also

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