Learn R Programming

rawKS (version 0.1.0)

ks_table: Get KS statistics

Description

Output a data.frame with inputs (y, yhat) and tpr, fpr and ks.

Usage

ks_table(yhat, y)

Arguments

yhat

numeric the value predicted by your model.

y

numeric the target values.

Value

The data frame containing tpr, fpr and ks.

Examples

Run this code
# NOT RUN {
data("two_class_example_edited")
max(ks_table(two_class_example_edited$yhat, two_class_example_edited$y)$ks)
# }

Run the code above in your browser using DataLab