get_onsetHazard: Calculate the onset hazard for an individual

Description Usage Arguments Value

View source: R/LifeSim_Functions.R

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

1
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


simrvprojects/SimRVPedigree documentation built on Feb. 12, 2020, 6:12 p.m.