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

Description Usage Arguments Value References

View source: R/Dirichlet_Process.r

Description

Update a "CatDP" object with sample sufficient statistics

Usage

1
2
## S3 method for class '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.


bbricks documentation built on July 8, 2020, 7:29 p.m.