Learn R Programming

bbricks (version 0.1.4)

posterior_bySufficientStatistics.CatDP: Update a "CatDP" object with sample sufficient statistics

Description

Update a "CatDP" object with sample sufficient statistics

Usage

# S3 method for CatDP
posterior_bySufficientStatistics(obj, ss, ...)

Arguments

obj

A "CatDP" object.

ss

Sufficient statistics of x. In Categorical-DP case the sufficient statistic of sample x can either be an object of type "ssCatDP" generated by sufficientStatistics(), or x itself(if x is a integer vector with all positive values).

...

Additional arguments to be passed to other inherited types.

Value

None. the model stored in "obj" will be updated based on "ss".

References

Teh, Yee W., et al. "Sharing clusters among related groups: Hierarchical Dirichlet processes." Advances in neural information processing systems. 2005.