icd9DiffComorbid: show the difference between two comorbidity mappings
Description
Compares two comorbidity:icd9 code mappings. The results are
returned invisibly as a list. Only those comorbidities with (case
sensitive) overlapping names are compared.
Usage
icd9DiffComorbid(x, y, names = NULL, x.names = NULL, y.names = NULL, show = TRUE, explain = TRUE)
Arguments
x
list of character vectors
y
list of character vectors
names
character vector of the comorbidity names
x.names
character vector of the comorbidity names from x to
compare
y.names
character vector of the comorbidity names from y to
compare
show
single logical value. The default is TRUE which causes a
report to be printed.
explain
single logical value. The default is TRUE which means
the differing codes are attempted to be reduced to their parent codes, in
order to give a more succinct summary.
Value
A list, each item of which is another list containing the
intersections and both asymmetric differences.
icd9DiffComorbid(elixComorbid, ahrqComorbid, "CHF")
## Not run: # # give full report on all comorbidities for these mappings# icd9DiffComorbid(elixComorbid, ahrqComorbid)# ## End(Not run)