Description Usage Arguments Value Examples
mixLp estimates the mixture regression parameters robustly using bisquare function based on multiple initial values. The solution is found by the modal solution.
1 2 3 4 5 |
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 |
Estimated coefficients of all components.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.