Description Usage Arguments Details Value See Also Examples
Append to input data frame number of screen tests offered and number of interval cases not detected by screening.
1 2 | calculate_clinical(dset, sensitivity, attendance, screen.start.year,
screen.stop.year)
|
dset |
A data frame of disease incidence as produced by
|
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. |
This function expects that the input data frame dset
contains
a variable sojourn
with a single unique value. The number of false
negatives are bounded by (1) the later of onset and the start of screening
and (2) the earlier of clinical presentation and the end of screening.
Disease presents clinically when all screening tests are false negatives.
Imperfect attendance is represented by removing the expected number of
cases in individuals who attend a sensitive test scaled by the number of
tests offered. In other words, false negative tests represent either not
attending a test or attending a test but it does not detect latent disease.
A data frame of simulated disease incidence organized by year of preclinical onset, sojourn time, and year of clinical diagnosis.
1 2 3 4 5 6 7 8 9 10 11 | library(plyr)
library(reshape)
dset <- generate_absence(1000, 0.001, 0, 6, 10)
cset <- ddply(dset,
.(sojourn),
calculate_clinical,
sensitivity=0.5,
attendance=0.8,
screen.start.year=0,
screen.stop.year=10)
print(head(cset))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.