Description Usage Arguments Value Examples
Plot the cumulative distributions of each class by a score variable and calculate the KS statistic denoting the max vertical distance between the two cumulative distributions.
1 | plotKS(a, b, la = "Distribution A", lb = "Distribution B")
|
a |
(numeric) vector of scores for the first class |
b |
(numeric) vector of scores for the second class |
la |
(character) legend label for the first class |
lb |
(character) legend label for the second class |
a list containing the following elements:
ks.stat - KS statistic
ks.plot - a ggplot2 object for the KS plot
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.