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

Description Usage Arguments Functions

View source: R/utilityFunctions.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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


kainhofer/r-mortality-tables documentation built on Dec. 17, 2020, 3:53 a.m.