force_of_mortality_GM: Calculate Gompertz-Makeham Force of Motion

Description Usage Arguments Value Examples

View source: R/gompertz-makeham.R

Description

\loadmathjax

Calculates \mjseqn\mu(t) = A + R e^\alpha t

Usage

1
force_of_mortality_GM(t, A, R, alpha)

Arguments

t

numeric scalar or vector corresponding to the age(s) \mjseqnt

A

numeric scalar corresponding to the \mjseqnA parameter

R

numeric scalar corresponding to the \mjseqnR parameter

alpha

numeric scalar corresponding to the \mjseqn\alpha parameter

Value

Returns a numeric scalar giving the Gompertz-Makeham force of mortality \mjseqn\mu(t)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# You can use a single age:
force_of_mortality_GM(t = 0,
                      A = 0.00033,
                      R = 0.00014,
                      alpha = 0.11521)

# Or a vector of ages:
force_of_mortality_GM(t = 0:100,
                      A = 0.00033,
                      R = 0.00014,
                      alpha = 0.11521
                      )

m-g-h/mortality documentation built on Dec. 21, 2021, 12:46 p.m.