Gallery/Model diagnostics
Model diagnostics
Residuals, leverage, calibration and ROC curves: check before you trust a model.
Model diagnostics
Residual diagnostics
The classic 2 × 2 panel for a linear model — linearity, normality, variance, leverage.
plot(lm) / performance::check_model()Model diagnostics
Influence plot
Studentized residuals vs leverage, with bubbles sized by Cook's distance.
car::influencePlot()Model diagnostics
ROC curves
Three classifiers compared by ROC curve, AUC with bootstrap 95% CI and Youden point.
pROC::ggroc() / pROC::ci.auc()Model diagnostics
Calibration plot
Predicted vs observed risk per decile, with Wilson CIs, prediction histograms and Brier score.
rms::calibrate() / probably::cal_plot_breaks()Model diagnostics
Added-variable plots
One partial-regression panel per predictor; each fitted slope equals its coefficient.
car::avPlots()