Description Usage Arguments Author(s)
View source: R/confusionMatrix.R
This function defines a class of confusion matrix. It takes a prediction vector and an observed vector as inputs, and returns a list like object containing the confusion matrix and the relevant indices of accuracy already pre-computed.
1 | confusionMatrix(predictions, observed)
|
predictions |
a vector of predicted states (e.g. 0 or 1) |
observed |
a vector of observed or actual states |
Richard D. Yentes ryentes@ncsu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.