Description Usage Arguments Details Value References See Also
To estimate the effect of setting a threshold on posterior probability to reject "unsure" predictions.
1 |
X |
matrix of PC scores from |
Y |
a factor giving the grouping, e.g. the |
saveplot |
logical. The plot will be saved if
|
plotsize |
numeric. Plot size for the plot saved
into file (used only when |
run |
argument to be passed to |
k |
argument to be passed to |
level |
numeric vector giving the threshold range to be tested. see details. |
only lda
is supported now. lda
decide
the class (e.g. species) based on the calculated posterior
probability. New sample is assigned to the class that has
the higher posterior probability. We can reject the
classification result if the posterior probability is low
(the "unsure" classification). In this way we can increase
the overall accuracy (correct predictions out of all the
reported results), but the tradeoff is the decrease in
number of reported classification result. The function test
the threshold value of 0.50 0.60 0.65 0.70 0.75 0.80 0.85
0.90 0.95 0.99 if level
is not provided. Since
thresholding is just an option, the choice of threshold
value is really arbitrary and depends on one's objectives.
a matrix and a plot are returned, giving the overall accuracy and the total reported prediction percentage over a range of threshold values.
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.
Which this function wraps: mrkfcv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.