Performs the estimation of gaussian mixtures of regression models and gaussian mixture models. Used in FMRCC_PhaseI.
mixregfit_multivariate(
y,
x,
k,
init_met = "random",
intercept = FALSE,
eps = 1e-06,
max_iter = 500,
model_Sigma
)a list with the estimated parameters of the model
a matrix with the scores of the response variable
a matrix with the scores of the covariates
the number of groups to consider in the model estimation
the method to initialize the model, it can be 'kmeans' or 'random'. Default is 'kmeans'
logical, if TRUE the model includes an intercept. Default is TRUE
the convergence criterion. Default is 1e-6
the maximum number of iterations. Default is 500
the parametrization of the covariance. It can be 'VVV', 'EEE', 'VII' or 'EII', with no default