BatchModel and MarginalModel both inherit from this class.
kAn integer value specifying the number of latent classes.
hyperparamsAn object of class 'Hyperparameters' used to specify the hyperparameters of the model.
thetathe means of each component and batch
sigma2the variances of each component and batch
nu.0the shape parameter for sigma2
sigma2.0the rate parameter for sigma2
pimixture probabilities which are assumed to be the same for all batches
muoverall mean
tau2overall variance
datathe data for the simulation.
data.meanthe empirical means of the components
data.precthe empirical precisions
zlatent variables
zfreqtable of latent variables
probzn x k matrix of probabilities
uchi-square draws for controlling t-distribution
logpriorlog likelihood of prior: log(p(sigma2.0)p(nu.0)p(mu))
logliklog likelihood: ∑ p_k Φ(θ_k, σ_k)
mcmc.chainsan object of class 'McmcChains' to store MCMC samples
batchan integer-vector numbering the different batches. Must the same length as data.
batchElementsa vector labeling from which batch each observation came from
modesthe values of parameters from the iteration which maximizes log likelihood and log prior
mcmc.paramsAn object of class 'McmcParams'
label_switchlength-one logical indicating problems with label switching
marginal_likthe marginal likelihood of the model
.internal.constraintConstraint on parameters. For internal use only.
.internal.counterFor internal use only.
marginal_likscalar for marginal likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.