calcIdealisedTimetoDiag: Calculate NICE Idealised Time to Diagnosis

Description Usage Arguments Details Value

View source: R/idealised-pathway-time-to-diag.R

Description

Uses the pathway frequencies for the NICE idealised pathway (chest X-ray, culture, smear, clinical judgement) and whether the observed Dosanjh final diagnosis is what would be expected from the idealised pathway.

Usage

1
2
calcIdealisedTimetoDiag(data, BAL = FALSE, Dosanjh3TB = FALSE,
  use_times_in_data = FALSE, return = "list")

Arguments

data

IDEA study data set (perhaps bootstrap sampled or imputed).

use_times_in_data

Use the raw times in the IDEA data or the idealised times.

return

Return a list of matrix.

Details

For the pathway derived from the data only, this is like a ‘double-imputation’ because we impute missing test results to match-up with the NICE guidelines and then we use imputed times to diagnosis.

For when we use predefined values we avoid some of the messiness of the time to test data. At the moment we just use some hard-coded expected values. Future work could use some statistic from the multiple imputations, like the median or mode. We could also (hardcode) data derived averaged instead.

Value

Times to diagnosis statistics


n8thangreen/IDEAdectree documentation built on Feb. 10, 2020, 11:35 a.m.