mixLp-methods: mixLp : mixLp_one estimates the mixture regression parameters...

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
mixLp(formula, data, nc=2, nit=200)

## S4 method for signature '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

1
2
3
4
5
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)

RobMixReg documentation built on Aug. 5, 2020, 5:08 p.m.