Description Usage Arguments Details Value
View source: R/estimateTimeToDiagnosis.R
estimateTimeToDiagnosis
estimates time to diagnosis for each patient using simple pre-defined rules.
This time is not directly available in the data but can be got at in most cases indirectly.
1 |
data |
Individual patient records |
The rules for estimating time to diagnosis are in priority order:
If culture +ve then min
(report time, start treatment) [previously, take report time only.]
What is means of diagnosis? Use corresponding times. Latest date of those for the means of diagnosis used.
If diagnosis date is too late (130 days after first test) then use DateDiagCon
if <130 days
If diagnosis date still NA
then use DateDiagCon
.
could use min(DateDiagCon, lasttestDate)
isntead?
data with the start.to.diag
column appended
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.