View source: R/calc_gompertz.R
plot_joint_survival | R Documentation |
Plotting the results of Gompertz model calibration for joint survival
plot_joint_survival(params, include_gompertz = FALSE)
params |
A list returned by |
include_gompertz |
A logical. Should the Gompertz survival curve be included in the plot? |
A ggplot2::ggplot()
object showing the survival probabilities
for two individuals and their joint survival probability.
params <- 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
)
plot_joint_survival(params = params, include_gompertz = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.