posteriorDiscard_bySufficientStatistics.CatDP {bbricks}R Documentation

Update a "CatDP" object with sample sufficient statistics

Description

Update a "CatDP" object with sample sufficient statistics

Usage

## S3 method for class 'CatDP'
posteriorDiscard_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.


[Package bbricks version 0.1.4 Index]