Skip to contents

Provided a risk estimate of death from cancer and an estimate for death from other causes, this function will combine the two risks assuming an exponential distribution for both.

Usage

update_cancer_death_risk(risk_cancer_death, risk_other_cause, time)

Arguments

risk_cancer_death

risk of death from cancer within time t=

risk_other_cause

risk of death from other causes within time t=

time

time frame associated with the risk predictions above.

Value

numeric probability between zero and one

Examples

update_cancer_death_risk(0.5, 0.5, time = 10)
#> [1] 0.375