Description Usage Arguments Methods (by class) Author(s) References Examples
van Walraven Elixhauser score is calculated from the Quan revision of Elixhauser's ICD-9 mapping. This function allows for the hierarchical exlusion of less severe versions of comorbidities when their more severe version is also present via the applyHeirarchy argument. For the Elixhauser comorbidities, this is diabetes v. complex diabetes and solid tumor v. metastatic tumor
1 2 3 4 5 6 7 8 | icd9VanWalraven(x, visitId = NULL, return.df = FALSE,
stringsAsFactors = getOption("stringsAsFactors"), ...)
## S3 method for class 'data.frame'
icd9VanWalraven(x, visitId = NULL, return.df = FALSE,
stringsAsFactors = getOption("stringsAsFactors"), ...)
icd9VanWalravenComorbid(x, visitId = NULL, applyHierarchy = FALSE)
|
x |
data frame containing a column of visit or patient identifiers, and
a column of ICD-9 codes. It may have other columns which will be ignored.
By default, the first column is the patient identifier and is not counted.
If |
visitId |
The name of the column in the data frame which contains the
patient or visit identifier. Typically this is the visit identifier, since
patients come leave and enter hospital with different ICD-9 codes. It is a
character vector of length one. If left empty, or |
return.df |
single logical value, if true, a two column data frame will
be returned, with the first column named as in input data frame (i.e.
|
stringsAsFactors |
single logical, passed on when constructing
data.frame if |
... |
further arguments to pass on to |
applyHierarchy |
single logical value, default is |
data.frame
: van Walraven scores from data frame of visits and ICD-9 codes
wmurphyrd
van Walraven C, Austin PC, Jennings A, Quan H, Forster AJ. A Modification to the Elixhauser Comorbidity Measures Into a Point System for Hospital Death Using Administrative Data. Med Care. 2009; 47(6):626-633. http://www.ncbi.nlm.nih.gov/pubmed/19433995
1 2 3 4 5 6 7 8 9 10 | mydf <- data.frame(visitId = c("a", "b", "c"),
icd9 = c("412.93", "441", "044.9"))
print(
cmb <- icd9ComorbidQuanElix(mydf, isShort = FALSE, applyHierarchy = TRUE, return.df=TRUE)
)
icd9VanWalravenComorbid(cmb)
icd9VanWalraven(mydf)
icd9VanWalraven(mydf, return.df = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.