Description Usage Arguments Details Value Examples
computes initial values of means and variance-covariance matrices for the EM algorithm in the case of continuous measurements and multinormal model.
1 |
y |
a |
K |
number of latent classes of the model, |
x |
a matrix of covariates if any, default is |
var.list |
a list of integers indicating which covariates (taken from |
The function allocates every individual to a class by a simple clustering of the data and evaluates the means and variance-covariance matrices of measurements in each class. Treatment of covariates is not yet implemented, and any provided covariate value will be ignored.
The function returns a list of 2 elements mu
and sigma
of length K
each, mu[k]
is the means vector
(of length d
) of measurements in class k
and sigma[k]
is the variances-covariances matrix
(of dimension d
times d
) of measurements in class k
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.