TLE-methods: TLE: robust mixture regression based on trimmed likelihood...

Description Usage Arguments Value Examples

Description

The algorithm fits a mixture regression model after trimming a proportion of the observations, given by tRatio.

Usage

1
2
3
4
5
TLE(formula, data, nc = 2, tRatio, MaxIt = 200)

## S4 method for signature 'formula,ANY,numeric,numeric,numeric'
TLE(formula, data,
  nc = 2, tRatio, MaxIt = 200)

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.

tRatio

Trimming proportion.

MaxIt

Maximum iteration.

Value

A S4 object of RobMixReg class.

Examples

1
2
3
4
5
6
library("RobMixReg")
formula01=as.formula("y~x")
x=(gaussData$x);y=as.numeric(gaussData$y);
example_data01=data.frame(x,y)

res = TLE(formula01,example_data01, nc=2,tRatio=0.05,MaxIt=200)

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