Description Usage Arguments Value Examples
View source: R/gompertz-makeham.R
Calculates \mjseqnS(t) = -At - \fracR\alpha (\exp(\alpha t) - 1)
1 | survival_function_GM(t, A, R, alpha)
|
t |
|
A |
|
R |
|
alpha |
|
Returns a numeric scalar
giving the Gompertz-Makeham survival
probability \mjseqnS(t)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.