confusion: Confusion matrix

Description Usage Arguments Details Value See Also Examples

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")


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

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

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

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