Arguments

For predicted categories to appear as rows,
specify rowcol="predicted"

printit

Character vector. Print "overall", or "confusion" matrix, or both.

prior

Prior probabilities for groups, if different from the relative group
frequencies

digits

Number of decimal digits to display in printed output

Details

Predicted group assignments should be estimated from cross-validation
or from bootstrap out-of-bag data. Better still, work with assignments
for test data that are completely separate from the data used to
dervive the model.

Value

A list with elements overall (overall accuracy), confusion (confusion
matrix) and prior (prior used for calculation of overall accuracy)