Description Usage Arguments Value Examples
Calculate Kolmogorov-Smirnov statistic
1 | ks2(score1, score2)
|
score1 |
A numeric vector containing scores or probabilities |
score2 |
A numeric vector containing scores or probabilities |
The KS statistic
1 2 3 4 5 6 7 8 9 | data(predictions)
score <- predictions$score
target <- predictions$target
score1 <- score[target == 1]
score1 <- score[target != 1]
ks2(target, score)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.