new_PlUpliftEval: A non-S3 "constructor" function that returns a list...

Description Usage Arguments Value

Description

A non-S3 "constructor" function that returns a list representing a pylift uplift eval object, PlUpliftEval. This object contains metrics and can be used to generate plots.

Usage

1
2
new_PlUpliftEval(treatment = integer(), outcome = integer(),
  prediction = numeric(), p = "infer", n_bins = 20)

Arguments

treatment

numeric vector of treatment identifiers

outcome

numeric vector of outcomes

prediction

numeric vector of uplift predictions

p

optional "infer", numeric, numeric vector representing treatment propensities

n_bins

integer number of bins on x-axis; default 20

Value

a list representing a pylift uplift eval object


uplifteval documentation built on June 15, 2019, 9:03 a.m.