Confusion matrix
confusion(dataset, pred, rvar, lev = "", cost = 1, margin = 2,
train = "", data_filter = "", ...)
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
Predictions or predictors
Response variable
The level in the response variable defined as _success_
Cost for each connection (e.g., email or mailing)
Margin on each customer purchase
Use data from training ("Training"), validation ("Validation"), both ("Both"), or all data ("All") to evaluate model evalbin
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
A list of results
See https://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant
summary.confusion
to summarize results
plot.confusion
to plot results