generate_absence: Simulate incidence in the absence of screening.

Description Usage Arguments Value See Also Examples

Description

Generate a data frame representing a population of pop.size individuals and record year of clinical diagnosis for relevant disease that develops in each year with a given sojourn time distribution under specified follow-up.

Usage

1
generate_absence(pop.size, onset.rate, sojourn.min, sojourn.max, followup.years)

Arguments

pop.size

Number of individuals in the simulated population.

onset.rate

Annual incidence rate of relevant preclinical disease.

sojourn.min

Minimum years of preclinical detectable period.

sojourn.max

Maximum years of preclinical detectable period.

followup.years

Number of years of follow-up.

Value

A data frame of simulated disease incidence organized by year of preclinical onset, number of preclinical cases, sojourn time, and year of clinical diagnosis.

See Also

generate_presence, generate_overdiag

Examples

1
2
3
4
library(plyr)
library(reshape)
dset <- generate_absence(1000, 0.001, 0, 6, 10)
print(head(dset))

roman-gulati/overdiag documentation built on May 27, 2019, 1:49 p.m.