Description Usage Arguments Details Value References See Also
aggregate LDA models based on iterated k-fold resampling method
1 2 |
X |
matrix/ dataframe of predictors, e.g. EFA
coefficients/ PC scores selected using
|
Y |
factor/ character giving the class, e.g. value
obtained from |
newdata |
matrix/ dataframe of newdata to be predicted. see details. |
type |
prediction based on the majority vote
( |
k |
the fold number for k-fold resampling |
run |
the iteration number for iteration of k-fold resampling |
threshold |
single numeric value of < 1. threshold
of the proportion of majority vote or the mean posterior
probability. predictions with less than the value will be
reported as |
prior |
the prior used in |
suppress |
logical. whether to suppress the progress monitoring output |
If newdata
is provided, the function is in the
prediction mode, the aggregated model will be built
from X
and Y
and predicition is performed on
newdata
. Otherwise, if newdata = NULL
(default) the function is in evaluation mode.
In evaluation mode, overall accuracy of the model
and the by-class statistics are calculated, similar to that
of mrkfcv2
. However, the statistics are
calculated based on the aggregated prediction. See
reference for explanation on model aggregation and
thresholding.
accuracy |
[evaluation mode] the overall accuracy in percent |
conmat |
[evaluation mode] confusion matrix |
stat |
[evaluation mode] matrix containing the statistics of each class, see details |
total |
[evaluation mode] the total
percent of reported prediction after threshold. give
|
ind.prediction |
matrix containing the prediction result on each training/ new specimens |
Beleites, C., & Salzer, R. (2008). Assessing and improving the stability of chemometric models in small sample size situations. Analytical and Bioanalytical Chemistry, 390(5), 1261-1271.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.