roc.plot: Create ROC Curves

Description Usage Arguments Details

Description

Create ROC curves for train and test datasets.

Usage

1
roc.plot(prob = 'p_', y = "t_Paid", df_train = ds1, df_test = ds2, model = NULL, model_var = 'X1') 

Arguments

prob

The prediction made by the model; should be between 0, 1.

y

The observed data; should be binary.

df_train

Train data.

df_test

Test data.

model

The name of the model in focus. If not NULL, then predictions are made directly through this function and the prob argument only acts as the name for the predicted variable.

model_var

If model prediction is of type "prob", then the name of the required predicted variable. By default this is "X1" which indicates the probability of the event.

Details

Note that prob and y are assumed to be variables in a dataset, and need to be inputted in quotes, such that y = "target" or prob = "propensity".


Ehsan-F/R-Mixtape documentation built on June 24, 2020, 12:22 a.m.