View source: R/background_mortality.R
est_hazard_params | R Documentation |
est_hazard_params
estimates the parameters of different
continuous-time hazard functional forms for background mortality for a
cohort with initial age n_age_init
in a trial with duration of
trial_time
years.
est_hazard_params(n_age_init = 50, trial_time = 5,
hazard = c("exponential", "linear", "geometric"), mortality = NULL)
n_age_init |
Initial age of the cohort |
trial_time |
Duration of clinical trial in years |
hazard |
The hazard function to be used for background mortality. Either empirical (e.g., from life tables) or a continuous-time functional form. |
mortality |
A |
A vector with an age-independent mortality rate coefficient, mu0
and
an age-dependent mortality rate coefficient, alpha
.
n_age_init <- 50 # Initial age of cohort in trial
trial_time <- 5 # Length of clinial trial in years
## Not run:
v_coef_hazard <- est_hazard_params(n_age_init = n_age_init,
trial_time = trial_time,
hazard = "exponential")
v_coef_hazard
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.