icd9DiffComorbid: show the difference between two comorbidity mappings

Description Usage Arguments Value Examples

View source: R/comorbid.R

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

1
2
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.

Examples

1
2
3
4
5
6
icd9DiffComorbid(elixComorbid, ahrqComorbid, "CHF")
## Not run: 
# give full report on all comorbidities for these mappings
icd9DiffComorbid(elixComorbid, ahrqComorbid)

## End(Not run)

icd9 documentation built on May 30, 2017, 2:25 a.m.