get_ks: Compute Kolmogorov Smirnov statistic

Description Usage Arguments Details Value Author(s) Examples

View source: R/sfa.R

Description

Compute the ks

Compute the ks

Usage

1
2
3
get_ks(x, y)

get_ks(x, y)

Arguments

x

categorical variable

y

binary variable

y

binary variable

x

categorical variable

Details

With a Binary Y variable and a categorical X variable stored as factor. KS value will be calculated

With a Binary Y variable and a categorical X variable stored as factor. KS value will be calculated

Value

AUC value

AUC value

Author(s)

Nguyen Ngoc Binh nguyenngocbinhneu@gmail.com

Nguyen Ngoc Binh nguyenngocbinhneu@gmail.com

Examples

1
2
3
4
data('hmeq')
ks1 <- get_ks(x = hmeq$reason, y = hmeq$bad)
data('hmeq')
ks1 <- get_ks(x = hmeq$reason, y = hmeq$bad)

nguyenngocbinh/scorecard.sea documentation built on Jan. 4, 2020, 11:43 a.m.