powered by
Model evalbin
evalbin(dataset, pred, rvar, lev = "", qnt = 10, cost = 1, margin = 2, train = "", method = "xtile", 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_
Number of bins to create
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
Use either ntile or xtile to split the data (default is xtile)
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
A list of results
See https://radiant-rstats.github.io/docs/model/evalbin.html for an example in Radiant
summary.evalbin to summarize results
summary.evalbin
plot.evalbin to plot results
plot.evalbin
# NOT RUN { result <- evalbin("titanic", c("age","fare"), "survived") # }
Run the code above in your browser using DataLab