Description Usage Arguments Value Examples
View source: R/gompertz-makeham.R
Calculates \mjseqn\mu(t) = A + R e^\alpha t
1 | force_of_mortality_GM(t, A, R, alpha)
|
t |
|
A |
|
R |
|
alpha |
|
Returns a numeric scalar
giving the Gompertz-Makeham force
of mortality \mjseqn\mu(t)
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.