View source: R/metrics-predictive.R
information_value | R Documentation |
Calculate Information Value
information_value(actual, predicted)
actual |
A binary vector |
predicted |
A vector: character, numeric or containing scores or probabilities |
The KS statistic
N <- 10000
predicted <- runif(N)
actual <- rbinom(N, size = 1, prob = predicted)
information_value(actual, predicted)
predicted[sample(c(TRUE, FALSE), size = N, prob = c(1, 99), replace = TRUE)] <- NA
information_value(actual, predicted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.