QiniBarPlot {tools4uplift}R Documentation

Uplift barplot

Description

Barplot of observed uplift with respect to predicted uplift sorted from the highest to the lowest.

Usage

QiniBarPlot(x, title = "Model Performance: Uplift by Group", color = NULL)

Arguments

x

a table that must be the output of QiniTable function.

title

an overall title for the plot.

color

color of the barplot.

Value

a barplot

Author(s)

Mouloud Belbahri

References

Belbahri, M., Murua, A., Gandouet, O., and Partovi Nia, V. (2019) Uplift Regression, <https://dms.umontreal.ca/~murua/research/UpliftRegression.pdf>

See Also

QiniTable

Examples


library(tools4uplift)
data("SimUplift")

square1 <- SquareUplift(SimUplift, "X1", "X2", "treat", "y")

#performance of the heat map uplift estimation on the training dataset
perf <- QiniTable(data = square1, treat = "treat", 
                  outcome = "y", prediction = "Uplift_X1_X2", nb.group = 5)

QiniBarPlot(perf)


[Package tools4uplift version 0.1-1 Index]