comp_elast_gompz: Elasticities of disease-specific hazard ratio (dsHR)

View source: R/elasticities.R

comp_elast_gompzR Documentation

Elasticities of disease-specific hazard ratio (dsHR)

Description

comp_elast_gompz computes the elasticities of dsHR with respect to parameters obtained from a clinical trial

Usage

comp_elast_gompz(ohr = 0.55, mu_Dis = 0.05, n_age_init = 50,
  trial_time = 5, mu0 = NULL, alpha = NULL,
  hazard = c("exponential"), mortality = NULL)

Arguments

ohr

Overall hazard ratio

mu_Dis

Disease-specific mortality rate

n_age_init

Initial age of the cohort in the trial

trial_time

Length of the trial

mu0

Age-independent mortality rate coefficient

alpha

Age-dependent mortality rate coefficient

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 data.frame with two columns. The first column should have age in yearly increments and the second column should have the mortality rate corresponding to the age. If NULL, the function will use all_cause_mortality.

Value

Elasticities of dsHR with respect to trial parameters.


feralaes/dshr documentation built on Aug. 28, 2023, 2:17 p.m.