Description Usage Arguments Value Methods (by class) Examples
View source: R/diff_comorbid.R
Compares two comorbidity to ICD code mappings. The results are returned invisibly as a list. Only those comorbidities with (case sensitive) overlapping names are compared.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
x |
list of character vectors |
y |
list of character vectors |
all_names |
character vector of the comorbidity names |
x_names |
character vector of the comorbidity names from |
y_names |
character vector of the comorbidity names from |
show |
single logical value. The default is |
explain |
single logical value. The default is |
A list, each item of which is another list containing the intersections and both asymmetric differences.
list
: Show difference between comorbidity maps with
ICD-9 codes
1 2 3 4 5 6 7 8 9 10 11 12 13 | # compare CHF for ICD-10 mappings from Elixhauser and AHRQ
diff_comorbid(icd10_map_elix, icd10_map_ahrq, show = FALSE)[["CHF"]]
## Not run:
# default is to show the results in a human readable manner:
diff_result <- diff_comorbid(icd9_map_elix, icd9_map_ahrq)[["CHF"]]
# show differences for
# give full report on all comorbidities for these mappings
diff_result <- diff_comorbid(icd9_map_elix, icd9_map_ahrq, show = FALSE)
# the following outputs a summary to the console:
diff_comorbid(icd9_map_elix, icd9_map_ahrq)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.