calc_gompertz_joint_parameters {R4GoodPersonalFinances} | R Documentation |
Calculating the Gompertz model parameters for joint survival
Description
Calculating the Gompertz model parameters for joint survival
Usage
calc_gompertz_joint_parameters(
p1 = list(age = NULL, mode = NULL, dispersion = NULL),
p2 = list(age = NULL, mode = NULL, dispersion = NULL),
max_age = 120
)
Arguments
p1 |
A list with |
p2 |
A list with |
max_age |
A numeric. The maximum age for the Gompertz model. |
Value
A list containing:
data |
A data frame with survival rates for 'p1', 'p2', 'joint' survival, and the fitted Gompertz model |
mode |
The mode of the joint Gompertz distribution |
dispersion |
The dispersion parameter of the joint Gompertz distribution |
Examples
calc_gompertz_joint_parameters(
p1 = list(
age = 65,
mode = 88,
dispersion = 10.65
),
p2 = list(
age = 60,
mode = 91,
dispersion = 8.88
),
max_age = 110
)
[Package R4GoodPersonalFinances version 1.0.0 Index]