survival_function_GM: Calculate Gompertz-Makeham Force of Motion

Description Usage Arguments Value Examples

View source: R/gompertz-makeham.R

Description

\loadmathjax

Calculates \mjseqnS(t) = -At - \fracR\alpha (\exp(\alpha t) - 1)

Usage

1
survival_function_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 survival probability \mjseqnS(t)

Examples

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

# Or a vector of ages:
survival_function_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.