[numeric]: The vector of observed responses - size n.
x
[matrix]: The matrix of predictors - size n rows and p columns.
g
[integer]: Either the number or the maximum of groups for fitting CLERE. Maximum number of groups is considered when model selection is required.
nItMC
[numeric]: Number of Gibbs iterations to generate the partitions. After the nBurn iterations, this number is automatically set to 1.
nItEM
[numeric]: Number of SEM iterations.
nBurn
[numeric]: Number of SEM iterations discarded before calculating the MLE which is averaged over SEM draws.
dp
[numeric]: Number of iterations between sampled partitions when calculating the likelihood at the end of the run.
nsamp
[numeric]: Number of sampled partitions for calculating the likelihood at the end of the run.
maxit
[numeric]: An EM algorithm is used inside the SEM to maximize the complete log-likelihood p(y, Z|theta). maxit stands as the maximum number of EM iterations for the internal EM.
tol
[numeric]: Maximum increased in complete log-likelihood for the internal EM (stopping criterion).
nstart
[integer]: Number of random starting points to be used for fitting the model.
parallel
[logical]: Should the estimation from nstart random starting points run in parallel?
seed
[integer]: An integer given as a seed for random number generation. If set to NULL, then a random seed is generated between 1 and 1000.
plotit
[logical]: Should a summary plot (base plot) be drawn after the run?
sparse
[logical]: Should a 0 class be imposed to the model?
analysis
[character]: Which analysis is to be performed. Values are "fit", "bic", "aic" and "icl".
algorithm
[character]: The algorithm to be chosen to fit the model. Either the SEM-Gibbs algorithm or the MCEM algorithm. The most efficient algorithm being the SEM-Gibbs approach. MCEM is not available for binary response.
theta0
[vector(numeric)]: An initial guess of the model parameters. When considering g components, the length of theta0 must be 2*g+3 and theta0 should be filled as intercept, the b_k's (g real numbers), the pi_k's (g real numbers summing to 1), sigma^2 and gamma^2 (two positive numbers).
Z0
[vector(integer)]: A vector of integers representing an initial partition for the variables. For 10 variables and 3 groups Z0 can be defined as Z0 = c(rep(0, 2), rep(1, 3), rep(2, 5)).