confusion: Confusion matrix

Description Usage Arguments Details Value See Also

View source: R/evalbin.R

Description

Confusion matrix

Usage

1
2
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

Details

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

Value

A list of results

See Also

summary.confusion to summarize results

plot.confusion to plot results


radiant.model documentation built on May 19, 2017, 9:56 p.m.

Search within the radiant.model package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.