Learn R Programming

BALD (version 1.0.0-3)

triResi,AnnualAggLossDevModelOutput-method: A method to plot and/or return residuals for models in the BALD package.

Description

A method to plot and/or return residuals for models in the BALD package.

Arguments

object

The object of type AnnualAggLossDevModelOuput from which to plot and/or return the residuals.

timeAxis

A character value describing along which of the three (3) time axis to plot the residuals. ‘dy’ for development year time, ‘cy’ for calendar year time, ‘ey’ for exposure year time.

standardize

A logical value. If TRUE, the plotted and returned residuals are normalized to their respective standard deviation.

plot

A logical value. If TRUE, the plot is generated and the statistics are returned; otherwise only the statistics are returned.

Value

Mainly called for the side effect of plotting. Also returns a named array with the same structure as the input triangle. Returned invisibly.

Details

Because the model is Bayesian, each residual comes as a distribution. To ease graphical interpretation, only the median for each residual is plotted/returned. The residual is defined as the observed value minus the posterior mean; if standardized, it is also divided by its posterior standard deviation.

See Also

triResi QQPlot