ConfusionMatrix: 'ConfusionMatrix'

Description Usage Arguments

View source: R/confusion.R

Description

Produces a confusion matrix for a trained model or data.frame showing the proportion of observed values that take the same values as the predicted values. Where the outcome variable in the model is not a factor and not a count, observed and predicted values are assigned to buckets.

Usage

1

Arguments

obj

A model with an outcome variable or a data.frame where the first column is the outcome and the second column is the prediction.

subset

An optional vector specifying a subset of observations to be used or the name of a column if obj is a data.frame.

weights

An optional vector of sampling weights or the name of a column if obj is a data.frame.


NumbersInternational/flipRegression documentation built on April 12, 2018, 2:50 a.m.