Performs the estimation of gaussian mixtures of regression models and gaussian mixture models. Used in FMRCC_PhaseI.
estimate_mixture(
y = NULL,
x = NULL,
ninit = 10,
groups = 1:5,
mode = "regression",
intercept = TRUE,
init_met = "kmeans",
sigma_par = c("VVV", "EEE", "VII", "EII")
)a list with the model estimated, the residuals variance matrix and the BIC values
a matrix with the scores of the response variable
a matrix with the scores of the covariates
the number of random starts for the model estimation. It is ignored if init_met = 'kmeans'. Default is 10
the number of groups to consider in the model estimation. Default is 1:3
the type of model to estimate, it can be 'regression' or 'clustering'. Default is 'regression'
logical, if TRUE the model includes an intercept. Default is TRUE
the method to initialize the model, it can be 'kmeans' or 'random'. Default is 'kmeans'
the covariance parametrization to consider in the model estimation. Default is c('VVV','EEE','VII','EII')