mixLp estimates the mixture regression parameters robustly using bisquare function based on multiple initial values. The solution is found by the modal solution.

mixLp(formula, data, nc=2, nit=200)

# S4 method for formula,ANY,numeric,numeric
mixLp(formula, data, nc = 2,
  nit = 20)

Arguments

formula

A symbolic description of the model to be fit.

data

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

nc

Number of mixture components.

nit

Number of iterations

Value

Estimated coefficients of all components.

Examples

library("RobMixReg")
formula01=as.formula("y~x")
x=(gaussData$x);y=as.numeric(gaussData$y);
example_data01=data.frame(x,y)
res = mixLp(formula01, example_data01, nc=2, nit=20)