Description Usage Arguments See Also Examples
View source: R/blr-gains-table.R
Visualize the decile wise event rate.
1 2 3 4 5 6 7 8 9 10 | blr_decile_capture_rate(
gains_table,
xaxis_title = "Decile",
yaxis_title = "Capture Rate",
title = "Capture Rate by Decile",
bar_color = "blue",
text_size = 3.5,
text_vjust = -0.3,
print_plot = TRUE
)
|
gains_table |
An object of class |
xaxis_title |
X axis title. |
yaxis_title |
Y axis title. |
title |
Plot title. |
bar_color |
Bar color. |
text_size |
Size of the bar labels. |
text_vjust |
Vertical justification of the bar labels. |
print_plot |
logical; if |
Other model validation techniques:
blr_confusion_matrix()
,
blr_decile_lift_chart()
,
blr_gains_table()
,
blr_gini_index()
,
blr_ks_chart()
,
blr_lorenz_curve()
,
blr_roc_curve()
,
blr_test_hosmer_lemeshow()
1 2 3 4 | model <- glm(honcomp ~ female + read + science, data = hsb2,
family = binomial(link = 'logit'))
gt <- blr_gains_table(model)
blr_decile_capture_rate(gt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.