View source: R/model_performance_residuals.R
| autoplot.check_residuals | R Documentation |
Plot the scaled residuals returned by check_residuals() against their
theoretical uniform quantiles. Systematic departures from the diagonal can
indicate remaining structure, distributional mismatch or influential
observations in a fitted pricing model.
## S3 method for class 'check_residuals'
autoplot(object, show_message = TRUE, max_points = 1000, ...)
object |
An object produced by |
show_message |
Logical. If |
max_points |
Maximum number of QQ-plot points to display. If the
residual check contains more points, an evenly spaced subset is shown.
Use |
... |
Currently unused. |
The subtitle reports the uniformity-test p-value stored in object. This
p-value is a diagnostic signal rather than a stand-alone model acceptance
criterion. The shape and location of deviations should be assessed together
with exposure, fitted values and relevant risk-factor levels.
Reducing max_points affects only the displayed QQ points; it does not
change the residual calculation or the reported test.
A ggplot2::ggplot object.
Martin Haringa
check_residuals(), check_overdispersion()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.