Learn R Programming

SimRVPedigree (version 0.4.4)

get_onsetHazard: Calculate the onset hazard for an individual

Description

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.

Usage

get_onsetHazard(sub_hazard, sub_GRR, carrier_prob, RV_status)

Arguments

sub_hazard

The hazard rate of disease for the subtype of interest

sub_GRR

The genetic relative risk of disease for the subtype of interest.

carrier_prob

Numeric. The carrier probability for all causal variants with relative-risk of disease GRR. By default, carrier_prob = 0.002

RV_status

Numeric. RV_status = TRUE if the individual is a carrier of a rare variant that increases disease suseptibility, and FALSE otherwise.

Value

The baseline age-specific hazard rates of disease