Learn R Programming

valse (version 0.1-0)

initSmallEM: initSmallEM

Description

initialization of the EM algorithm

Usage

initSmallEM(k, X, Y, fast)

Arguments

k

number of components

X

matrix of covariates (of size n*p)

Y

matrix of responses (of size n*m)

fast

boolean to enable or not the C function call

Value

a list with phiInit (the regression parameter reparametrized), rhoInit (the covariance parameter reparametrized), piInit (the proportion parameter is the mixture model), gamInit (the conditional expectation)