meclight(x, ...)
## S3 method for class 'default':
meclight(x, grouping, r = 1, fold = 10, ...)
## S3 method for class 'formula':
meclight(formula, data = NULL, ..., subset, na.action = na.fail)
## S3 method for class 'data.frame':
meclight(x, ...)
## S3 method for class 'matrix':
meclight(x, grouping, ..., subset, na.action = na.fail)
groups ~ x1 + x2 + ...
. That is, the response is the grouping factor and
the right hand side specifies the (non-factor) discriminators.na.omit
,
which leads to rejection of cases with missing values on any required variable.lda
.lda
error rate.lda
. In contrast to the reference function minimization is
done by Nelder-Mead in optim
.predict.meclight
data(iris)
meclight.obj <- meclight(Species ~ ., data = iris)
meclight.obj
Run the code above in your browser using DataLab