Description Usage Arguments Value See Also Examples
Screen a simulated population using specified sensitivity and count screen diagnoses in each year of screening for relevant disease that develops in each year with a given sojourn time.
1 2 | generate_presence(dset, sojourn.min, sojourn.max, sensitivity, attendance,
screen.start.year, screen.stop.year, followup.years)
|
dset |
A data frame of simulated population as produced by
|
sojourn.min |
Minimum years of preclinical detectable period. |
sojourn.max |
Maximum years of preclinical detectable period. |
sensitivity |
Proportion of relevant disease detected by screening. |
attendance |
Proportion of individuals who attend screening tests. |
screen.start.year |
Year of follow-up at which screening starts. |
screen.stop.year |
Year of follow-up at which screening stops. |
followup.years |
Number of years of follow-up. |
A data frame of simulated disease incidence organized by year of preclinical onset, sojourn time, and year of clinical diagnosis.
generate_absence
, generate_overdiag
1 2 3 4 5 | library(plyr)
library(reshape)
dset <- generate_absence(1000, 0.001, 0, 6, 10)
dset <- generate_presence(dset, 0, 6, 0.5, 0.8, 0, 10, 10)
print(head(dset))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.