powered by
Create a Confusion Matrix.
conf.mat( pred, actual, cutoff = NULL, dnn = c( "Prediction", "Actual" ), ... )
a vector of estimated values.
a vector of actual values.
cutoff value for the case that pred is vector of probabilites.
pred
the names to be given to the dimensions in the result (the dimnames names).
options to be passed to table.
table
the results of table on pred and actual.
actual
# NOT RUN { pred = c( "no", "yes", "yes", "no", "no", "yes", "no", "no" ) actual = c( "yes", "no", "yes", "no", "no", "no", "yes", "yes" ) conf.mat( pred, actual ) # }
Run the code above in your browser using DataLab