create_double_lift_data: create_double_lift_data

Description Usage Arguments

View source: R/create_double_lift_data.R

Description

This function creates the requisite data for a double lift chart

Usage

1
2
create_double_lift_data(modelA, modelB, actual, weight = NULL, nbins = 10,
  retLabel = FALSE)

Arguments

modelA

A vector that contains the predictions for Model A - preds will be pro-rated

modelB

A vector that contains the predictions for Model B - preds will be pro-rated

actual

A vector that contains the actuals that the models are to be compared to

weight

A vector that contains the row level weights (exposure,claim count). Defaults to NULL

nbins

Passed to the binnarise function - how many equally sized bins should the ratio be cut into

retLabel

Keep string labels from binnarise


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.