R/TLE.short.R
TLE-methods.Rd
The algorithm fits a mixture regression model after trimming a proportion of the observations, given by tRatio.
TLE(formula, data, nc = 2, tRatio, MaxIt = 200)
# S4 method for formula,ANY,numeric,numeric,numeric
TLE(formula, data,
nc = 2, tRatio, MaxIt = 200)
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.
Trimming proportion.
Maximum iteration.
A S4 object of RobMixReg class.
library("RobMixReg")
formula01=as.formula("y~x")
x=(gaussData$x);y=as.numeric(gaussData$y);
example_data01=data.frame(x,y)
# \donttest{
res = TLE(formula01,example_data01, nc=2,tRatio=0.05,MaxIt=200)
# }