The train function of the CSMR algorithm.
CSMR_train(x, y, nit, nc, max_iter)
The matrix
The external supervised variable.
xxx
The component number in the mixture model.
The maximum iteration number.
A list object consist of coefficient, clustering membership, data x, external variable y, predicted y based on regression model.