Description Usage Arguments Value Examples
This model utilizes robust estimation in order to improve the performance of the standard linear discriminant. This is a heavy modification of MASS's lda function. Due to the substantial modifications the returned object is of its own "ldarob" class and has an accompanying predict method.
1 2 3 4 5 6 7 | ldarob(
formula,
data,
prior = proportions,
method = c("rocke", "shr"),
tol = 1e-10
)
|
formula |
a model formula |
data |
a data frame |
prior |
a vector of prior probabilities for each class |
method |
the scale estimation method. one of "rocke" ( |
tol |
tolerance for small-variance variables. If the variance is smaller than tol, the variable is declared constant. Defaults to 1e-04. |
An ldarob object
1 | ldarob(Species ~.,iris)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.