interpol_surv: Interpolate yearly survivorship

Description Usage Arguments Value References Examples

View source: R/tools.R

Description

This function is called internally by other functions. It interpolates yearly survivorship probabilities. The method is described in Slud 2001.

Usage

1
interpol_surv(death_prob, ages, steps = 10)

Arguments

death_prob

A vector of yearly probabilities of death

ages

A vector of ages for which to perform the interpolation

steps

An integer giving the number of increments for the interpolation (within each year)

Value

A data frame containing the interpolated survivorship probabilities for each age.

References

Slud 2001 Actuarial Mathematics and Life-Table Statistics (http://www2.math.umd.edu/~hmg/Stat470book.pdf)

Examples

1
interpol_surv(death_prob = c(0.1, 0.8, 0.9, 0.9), ages = 1:4)

courtiol/SileR documentation built on May 16, 2020, 8:10 p.m.