Description Usage Arguments Value References See Also Examples
View source: R/blr-gains-table.R
Compute sensitivity, specificity, accuracy and KS statistics to generate the lift chart and the KS chart.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
model |
An object of class |
data |
A |
x |
An object of class |
title |
Plot title. |
xaxis_title |
X axis title. |
yaxis_title |
Y axis title. |
diag_line_col |
Diagonal line color. |
lift_curve_col |
Color of the lift curve. |
plot_title_justify |
Horizontal justification on the plot title. |
print_plot |
logical; if |
... |
Other inputs. |
A tibble.
Agresti, A. (2007), An Introduction to Categorical Data Analysis, Second Edition, New York: John Wiley & Sons.
Agresti, A. (2013), Categorical Data Analysis, Third Edition, New York: John Wiley & Sons.
Thomas LC (2009): Consumer Credit Models: Pricing, Profit, and Portfolio. Oxford, Oxford Uni-versity Press.
Sobehart J, Keenan S, Stein R (2000): Benchmarking Quantitative Default Risk Models: A Validation Methodology, Moody’s Investors Service.
Other model validation techniques:
blr_confusion_matrix()
,
blr_decile_capture_rate()
,
blr_decile_lift_chart()
,
blr_gini_index()
,
blr_ks_chart()
,
blr_lorenz_curve()
,
blr_roc_curve()
,
blr_test_hosmer_lemeshow()
1 2 3 4 5 6 7 8 | model <- glm(honcomp ~ female + read + science, data = hsb2,
family = binomial(link = 'logit'))
# gains table
blr_gains_table(model)
# lift chart
k <- blr_gains_table(model)
plot(k)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.