Learn R Programming

MortalityTables (version 2.0.5)

calculateImprovements: Calculate the improvement factors for the given birth-year and the mortalityTable.improvementFactors object

Description

Calculate the improvement factors for the given birth-year and the mortalityTable.improvementFactors object

Usage

calculateImprovements(object, ...)

# S4 method for mortalityTable.improvementFactors calculateImprovements(object, ..., Period = NULL, YOB = 1982)

Arguments

object

A pension table object (instance of a mortalityTable.improvementFactors class)

...

Currently unused

Period

Observation period (either Period or YOB should be given)

YOB

Year of birth (either Period or YOB should be given)

Methods (by class)

  • calculateImprovements(mortalityTable.improvementFactors): Calculate the total mortality improvement factors relative to the base year for the given birth-year and the mortalityTable.improvementFactors object

Examples

Run this code
pensionTables.load("USA_PensionPlan_RP2014")
calculateImprovements(RP2014.male@qx, YOB = 2017)

Run the code above in your browser using DataLab