bootstrap.fitiMoMo: Bootstrap an Improvement Rate Mortality Model

Description Usage Arguments

View source: R/bootstrapfitiMoMo.R

Description

Produce bootstrap parameters of an improvement rate model to account for parameter uncertainty.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'fitiMoMo'
bootstrap(
  object,
  nBoot = 1,
  type = c("semiparametric", "residual"),
  deathType = c("observed", "fitted"),
  ...
)

Arguments

object

an object of class "fitiMoMo" with the fitted parameters of an improvement rate model.

nBoot

number of bootstrap samples to produce.

type

type of bootstrapping approach to be applied. "semiparametric"(default) uses the assumed distribution of the deaths to generate bootstrap samples. "residual" resamples the deviance residuals of the model to generate bootstrap samples.

deathType

type of deaths to sample in the semiparametric bootstrap. "observed" (default) resamples the observed deaths. "fitted" resamples the fitted deaths. This parameter is only used if type is "semiparametric".


amvillegas/iMoMo documentation built on Sept. 18, 2020, 11:25 p.m.