makeScoreDistribution: Provides Score Distribution interpoles

Description Usage Arguments Value Author(s)

View source: R/makeScoreDistribution.R

Description

Calculates the lift curve based on a score(numeric 0-1) and responce(TRUE/FALSE) vector

Usage

1
makeScoreDistribution(score, response, method = "approx", groups = 100, ...)

Arguments

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

Value

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)

Author(s)

Daniel Fischer


danielfm123/dftools documentation built on July 17, 2021, 1 p.m.