View source: R/model_performance_bootstrap_rmse.R
| autoplot.bootstrap_performance | R Documentation |
Display the empirical distribution of resampled RMSE values from
bootstrap_performance(). The histogram shows the observed resampling
distribution, while the density curve provides a smooth visual summary.
## S3 method for class 'bootstrap_performance'
autoplot(object, fill = "#E6E6E6", color = NA, ...)
object |
An object of class |
fill |
Fill colour of the histogram bars. Default is |
color |
Border colour of the histogram bars. Default is |
... |
Currently unused. |
The dashed orange line marks the RMSE of the original fitted model. The dotted grey lines mark the 2.5 and 97.5 percent empirical quantiles of the resampled values when these can be calculated. Their distance provides a practical indication of sampling variability; it is not a formal prediction interval for future portfolio performance.
A ggplot2::ggplot object.
Martin Haringa
bootstrap_performance(), rmse()
## Not run:
mod1 <- glm(nclaims ~ age_policyholder, data = MTPL,
offset = log(exposure), family = poisson())
x <- bootstrap_performance(mod1, MTPL, n_resamples = 100,
show_progress = FALSE)
autoplot(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.