get_ind_data: Get individual data for sim_pop function

Description Usage Arguments Value

View source: R/Validation_Functions.R

Description

This is an internal function

Usage

1
get_ind_data(hazard_rates, GRR, YOB, stop_year, RVstat, carrier_prob)

Arguments

hazard_rates

An object of class hazard, created by hazard.

GRR

Numeric. The genetic relative-risk of disease, i.e. the relative-risk of disease for individuals who carry at least one copy of the causal variant. Note: When simulating diseases with multiple subtypes GRR must contain one entry for each simulated subtype. See details.

YOB

Numeric. The year of birth for all individuals in the sample.

stop_year

Numeric. The last year of the study, i.e. the last year we can observe data.

RVstat

The individual's cRV status

carrier_prob

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

Value

A data frame of survival data


SimRVPedigree documentation built on Feb. 10, 2020, 1:07 a.m.