Description Format Details Value Methods
This class implements a marginal Gibbs sampler for a Dirichlet process prior on the mean of a Poisson distributed random variable, with a Gamma-distributed base function.
Object of R6Class
with methods for updating a DirichletProcessNode instance.
The marginal Gibbs sampler is based on the description in Gelman et al. Bayesian Data Analysis, 3rd edition, Chapter 23.
Please note that no checks are performed as to the suitability of this algorithm for a particular StochasticNode. It is up to the user to use the correct update algorithm for the appropriate nodes.
Object of PoisGammaDPUpdate
new(node)
constructor takes an instance of a DirichletProcessNode node
update()
when called, updates node
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.