Learn R Programming

radiant.model (version 0.8.0)

confusion: Confusion matrix

Description

Confusion matrix

Usage

confusion(dataset, pred, rvar, lev = "", cost = 1, margin = 2,
  train = "", data_filter = "", ...)

Arguments

dataset

Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant

pred

Predictions or predictors

rvar

Response variable

lev

The level in the response variable defined as _success_

cost

Cost for each connection (e.g., email or mailing)

margin

Margin on each customer purchase

train

Use data from training ("Training"), validation ("Validation"), both ("Both"), or all data ("All") to evaluate model evalbin

data_filter

Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")

...

further arguments passed to or from other methods

Value

A list of results

Details

See https://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant

See Also

summary.confusion to summarize results

plot.confusion to plot results