plot.bootStMoMo {StMoMo}R Documentation

Plot bootstrapped parameters of a Stochastic Mortality Model

Description

Plot fancharts of bootstrapped parameters of a Stochastic Mortality Model stored in an object of class "bootStMoMo".

Usage

## S3 method for class 'bootStMoMo'
plot(x, nCol = 2, parametricbx = TRUE, 
                          colour = rgb(0, 0, 0), 
                          probs = c(2.5, 10, 25, 50, 75, 90, 97.5), ...)

Arguments

x

an object of class "bootStMoMo" with the bootstrapped parameters of a stochastic mortality model.

nCol

number of columns to use in the plot.

parametricbx

if FALSE parametric age-modulating terms, which don't need to be estimated, are not plotted.

colour

colour to use in the fans.

probs

probabilities related to percentiles to plot in the fan chart. The default c(2.5,10,25,50,75,90,97.5) plots the 50%, 80% and 95% confidence intervals of the parameters.

...

other arguments.

See Also

plot.fitStMoMo

Examples

#Long computing times
## Not run: 
CBDfit <- fit(cbd(), data = central2initial(EWMaleData),
              ages.fit = 55:89)
CBDResBoot <- bootstrap(CBDfit, nBoot = 500)
plot(CBDResBoot)
plot(CBDResBoot, parametricbx = FALSE, probs = seq(2.5, 97.5, 2.5))

## End(Not run)


[Package StMoMo version 0.4.1 Index]