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