mT.setTrend: Set/Add a trend vector for the probabilities of the given...

View source: R/utilityFunctions.R

mT.setTrendR Documentation

Set/Add a trend vector for the probabilities of the given mortalityTable object(s). Returns a mortalityTable.trendProjection object

Description

Set/Add a trend vector for the probabilities of the given mortalityTable object(s). Returns a mortalityTable.trendProjection object

Usage

mT.setTrend(
  table,
  trend,
  trendages = NULL,
  baseYear = NULL,
  dampingFunction = identity
)

mT.addTrend(
  table,
  trend,
  trendages = NULL,
  baseYear = NULL,
  dampingFunction = identity
)

Arguments

table

A life table object (instance of a mortalityTable class) or a list, table or array of mortalityTable objects

trend

Trend vector to be applied to the mortality table

trendages

Ages corresponding to the values of the trend vector

baseYear

Base year for the trend projection (passed on to mortalityTable.trendProjection)

dampingFunction

Trend damping (passed on to mortalityTable.trendProjection)

Functions

  • mT.addTrend(): Add a trend to the mortality table (returns a mortalityTable.trendProjection obect)


MortalityTables documentation built on Nov. 2, 2023, 5:52 p.m.