R/mixL.short.R
mixLp-methods.Rd
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)
A symbolic description of the model to be fit.
A data frame containing the predictor and response variables, where the last column is the response varible.
Number of mixture components.
Number of iterations
Estimated coefficients of all components.
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)