blr_prep_lchart_gmean: Lift Chart data

Description Usage Arguments Examples

View source: R/blr-plots-data.R

Description

Data for generating lift chart.

Usage

1
2
3
blr_prep_lchart_gmean(gains_table)

blr_prep_lchart_data(gains_table, global_mean)

Arguments

gains_table

An object of clas blr_gains_table.

global_mean

Overall conversion rate.

Examples

1
2
3
4
5
model <- glm(honcomp ~ female + read + science, data = hsb2,
             family = binomial(link = 'logit'))
gt <- blr_gains_table(model)
globalmean <- blr_prep_lchart_gmean(gt)
blr_prep_lchart_data(gt, globalmean)

blorr documentation built on July 2, 2020, 2:15 a.m.