blr_prep_kschart_data: KS Chart data

Description Usage Arguments Examples

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

Description

Data for generating KS chart.

Usage

1
2
3
4
5
6
7
8
9

Arguments

gains_table

An object of clas blr_gains_table.

ks_line

Overall conversion rate.

Examples

1
2
3
4
5
6
7
8
model <- glm(honcomp ~ female + read + science, data = hsb2,
             family = binomial(link = 'logit'))
gt <- blr_gains_table(model)
blr_prep_kschart_data(gt)
ks_line <- blr_prep_kschart_line(gt)
blr_prep_kschart_stat(ks_line)
blr_prep_ksannotate_y(ks_line)
blr_prep_ksannotate_x(ks_line)

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