Description Usage Arguments Details Value Examples
This function generates a sample from the posterior of Mixtures of Perturbed Gaussians.
1 |
Y |
Matrix of the data. Each row represents an observation. |
C |
Vector of the group label of each observation. Labels are integers starting from 1. |
prior |
A list giving the prior information. If unspecified, a default prior is used.
The list includes the following hyparameters:
|
mcmc |
A list giving the MCMC parameters. If unspecified, default parameters are used.
The list includes the following parameters: |
state |
Initial state of the chain. At the moment only the latent variables Z can be initialized. |
y_{i,j} = ∑_{k=1}^{K_0+K_1}π_{j,k}N(y_{i,j} | μ_{j,k}, Σ_k )
where i = 1, …, n_j and j = 1, …, J. The weights are defined as follows:
π_{j,k} = ρ w_{0,k} \;\;\; k = 1, …, K_0,
π_{j,k} = (1 - ρ) w_{j,k + K_0} \;\;\; k = 1, …, K_1,
where
(w_{0,1}, …, w_{0,K_0}) \sim Dirichlet(α_0/K_0)
(w_{j,1}, …, w_{j,K_1}) \sim Dirichlet(α_j/K_1)
A MPG
object.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.