Description Usage Arguments Details Value Author(s) See Also Examples
Takes in actual binary response and predicted probabilities, and returns table used for KS computation and KS value
1 | ks(y, yhat)
|
y |
actual binary response |
yhat |
predicted probabilities corresponding to the actual binary response |
Kolmogorov-Smirnov statistic can be easily computed using ks
function. It
not only computes the statistic but also returns the table used for ks computation.
A chart is also plotted for quick visualization of split between percentage of
responders and non-responders. Deciles are used for computation.
Appropriate elements of the 2 element list (ie. ksTable or ks) can be picked using the code given in the example.
a two element list: table for KS computation and KS value itself
Akash Jain
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.