mixLp | R Documentation |
mixLp estimates the mixture regression parameters robustly using bisquare function based on multiple initial values. The solution is found by the modal solution.
mixLp(formula, data, nc=2, nit=200)
## S4 method for signature 'formula,ANY,numeric,numeric'
mixLp(formula, data, nc = 2, nit = 20)
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.
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.