ezr.capture_rate_dual: Capture Dual Values at a time

Description Usage Arguments Details

Description

Get the capture rate depending upon the value of a score. Requires that the target be 0 or 1. It can be either numeric, character, or factor. Target2 is a 2nd option where you can compare two metrics side by side.

Usage

1
2
3
ezr.capture_rate_dual(dataset, target, score, n_perc = 0.1,
  target2 = NULL, higher_morelikely = TRUE,
  return_entire_table = FALSE)

Arguments

dataset

Dataframe

target

Target. Should be 0 or 1.

score

Score that sorts for the capture rate.

n_perc

what percentile do you want to examine?

target2

should be 0 or 1. A secondary thing to measure.

higher_morelikely

TRUE by default. This is generally what you expect.

return_entire_table

Return ntiles from 0-100. Not yet implemented

Details

Almost duplicates gains-lift table, but allows for side by side comparison.


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.