Calculate the onset hazard rate of disease for an individual given the carrier probability and the genetic relative risk for the subtype and the individual's RV status.
get_onsetHazard(sub_hazard, sub_GRR, carrier_prob, RV_status)
The hazard rate of disease for the subtype of interest
The genetic relative risk of disease for the subtype of interest.
Numeric. The carrier probability for all causal variants with relative-risk of disease GRR
. By default, carrier_prob
= 0.002
Numeric. RV_status = TRUE
if the individual is a carrier of a rare variant that increases disease suseptibility, and FALSE
otherwise.
The baseline age-specific hazard rates of disease