accuracy {liver} | R Documentation |
Average classification accuracy
Description
Computes average classification accuracy.
Usage
accuracy(pred, actual, cutoff = NULL, reference = NULL)
Arguments
pred |
a numerical vector of estimated values. |
actual |
a numerical vector of actual values. |
cutoff |
cutoff value for the case that |
reference |
a factor of classes to be used as the true results. |
Value
the computed average classification accuracy (numeric value).
Author(s)
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
See Also
Examples
pred = c("no", "yes", "yes", "no", "no", "yes", "no", "no")
actual = c("yes", "no", "yes", "no", "no", "no", "yes", "yes")
accuracy(pred, actual)
[Package liver version 1.19 Index]