Description Usage Arguments Value Author(s)
View source: R/makeScoreDistribution.R
Calculates the lift curve based on a score(numeric 0-1) and responce(TRUE/FALSE) vector
1 | makeScoreDistribution(score, response, method = "approx", groups = 100, ...)
|
score |
a numeric vector with the scores from the prodictive model |
response |
a boolean (TRUE or FALSE) vector with the real values from the dataset |
method |
method used to interpolate scores between groups, approx for approxfun or spline for splinefun |
groups |
number of percentiles, default 100 |
... |
passed to aproximation method |
function to aproximate probabilities based on score score = runif(1000) response = (score + rnorm(1000,0,0.1)) > 0.5 fn = makeScoreDistribution(score,response,methond = 'approx') fn(0.5)
Daniel Fischer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.