Description Usage Arguments Details Value See Also Examples
computes the initial values of cumulative logistic coefficients alpha for the EM algorithm in the case of ordinal measurements and a product multinomial model.
1 |
y |
a |
K |
number of latent classes of the model, |
x |
a matrix of covariates if any, default is |
var.list |
list of integers indicating which covariates (taken from |
The function allocates every individual to a class and evaluates the cumulative logistic coefficients for each measurement and each class. Regression coefficients for the covariates are set to 0.
The function returns a list of one element alpha
which is a list of d
elements, each element alpha[[j]]
is a K
times
S-1
matrix, where S
is the number of values of the measurement y[,j]
, a row alpha[[j]][k,]
gives the the cumulative logistic
coefficients of class k
and measurement j
using alpha.compute
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.