An S4 class to represent a Multinomial model model, extends icl_model-class
.
Such model can be used to cluster a data matrix \(X\) with the following generative model :
$$ \pi \sim Dirichlet(\alpha)$$
$$ Z_i \sim \mathcal{M}(1,\pi)$$
$$ \theta_{k} \sim Dirichlet(\beta)$$
$$ X_{i.}|Z_{ik}=1 \sim \mathcal{M}(L_i,\theta_{k})$$
With \(L_i=\sum_d=1^DX_{id}\). This class mainly store the prior parameters value (\(\alpha,\beta\)) of this generative model in the following slots:
name
name of the model
alpha
Dirichlet over cluster proportions prior parameter (default to 1)
beta
Dirichlet over vocabulary prior parameter (default to 1)
new("mm")#> An object of class "mm" #> Slot "beta": #> [1] 1 #> #> Slot "name": #> [1] "mm" #> #> Slot "alpha": #> [1] 1 #>new("mm",alpha=1,beta=1)#> An object of class "mm" #> Slot "beta": #> [1] 1 #> #> Slot "name": #> [1] "mm" #> #> Slot "alpha": #> [1] 1 #>