plot.bootStMoMo: Plot bootstrapped parameters of a Stochastic Mortality Model

Description Usage Arguments See Also Examples

View source: R/plotbootStMoMo.R

Description

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

Usage

1
2
3
4
## 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

1
2
3
4
5
6
7
8
9
#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)

amvillegas/StMoMo documentation built on Nov. 7, 2019, 5:39 a.m.