Description Usage Arguments Value Examples
The main function of Robust Mixture Regression using five methods.
1 2 |
lr.method |
A robust mixture regression method to be used. Should be one of "flexmix", "TLE", "CTLERob", "mixbi","mixLp". |
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 for CTLE, mixbi, mixLp. |
tRatio |
Trimming proportion for TLE method. |
MaxIt |
Maximum iteration for TLE method. |
An S4 object about the regression result.
1 2 3 4 5 6 7 8 9 10 11 12 | library(RobMixReg)
#library(robust)
library(flexmix)
library(robustbase)
library(MASS)
library(gtools)
# gaussData
x=(gaussData$x);y=as.numeric(gaussData$y);
formula01=as.formula("y~x")
example_data01=data.frame(x,y)
res_rmr = rmr(lr.method='flexmix', formula=formula01, data=example_data01)
res_rmr = rmr(lr.method='CTLERob', formula=formula01, data=example_data01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.