Confusion Matrix creation in predictive modeling in experiments with data

r

#1

‘data’ and ‘reference’ should be factors with same levels.