Mixture regression based on MLE could be unstable when assuming unequal variance. Multiple runs of flexmix is performed to stabilize the results.

flexmix_2(formula, data1, k, mprior)

Arguments

formula

A symbolic description of the model to be fit.

data1

A data frame containing the predictor and response variables, where the last column is the response varible.

k

Number of mixture components.

mprior

A numeric number in (0,1) that specifies the minimum proportion of samples in each mixing components.

Value

A S4 object of flexmix class. xxx