Confusion matrix

Share:

Description

Confusion matrix

Usage

1
2
confusion(dataset, pred, rvar, lev = "", margin = 1, cost = 1,
  train = "", method = "xtile", 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_

margin

Margin on each customer purchase

cost

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

train

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

method

Use either ntile or xtile to split the data (default is xtile)

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 http://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant

Value

A list of results

See Also

summary.evalbin to summarize results

plot.evalbin to plot results

Examples

1
result <- evalbin("titanic", c("age","fare"), "survived")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.