This function computes the prior on the number of clusters, i.e. occupied components of the mixture for a Finite Dirichlet process
when the prior on the component-weights of the mixture is a Dirichlet with parameter
gamma (i.e. when unnormalised weights
are distributed as Gamma(γ,1)). This function can be used when the number of components is fixed to M^*, i.e.
a Dirac prior assigning mass only to M^* is assumed. See \insertCiteargiento2019infinityAntMAN There are no default values.
The sample size.
The number of component of the mixture.
AM_prior object, that is a vector of length n, reporting the values
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.