
Windex_ahrq, for the weighted version of the grouped Elixhauser index using the AHRQ algorithm (Moore et al., 2017) Wscore_vw, for the weighted version of the Elixhauser score using the algorithm in van Walraven et al.

Windex_vw, for the weighted version of the grouped Elixhauser index using the algorithm in van Walraven et al. Labels are presented to the user when using the RStudio viewer (e.g. via the utils::View() function) for convenience. The ICD-10 and ICD-9-CM coding for the Charlson and Elixhauser scores is based on work by Quan et al. Weights for the Charlson score are based on the original formulation by Charlson et al. in 1987, while weights for the Elixhauser score are based on work by Moore et al. Finally, the categorisation of scores and weighted scores is based on work by Menendez et al. See vignette("comorbidityscores", package = "comorbidity") for further details on the comorbidity scores and the weighting algorithm. ICD-10 and ICD-9 codes must be in upper case and with alphanumeric characters only in order to be properly recognised set des = TRUE to properly tidy the codes automatically. As a convenience, a message is printed to the R console when non-alphanumeric characters are found. Quan H, Sundararajan V, Halfon P, Fong A, Burnand B, Luthi JC, et al. Coding algorithms for defining comorbidities in ICD-9-CM and ICD-10 administrative data. A new method of classifying prognostic comorbidity in longitudinal studies: development and validation. Moore BJ, White S, Washington R, Coenen N, and Elixhauser A. Identifying increased risk of readmission and in-hospital mortality using hospital administrative data: the AHRQ Elixhauser comorbidity index.

Van Walraven C, Austin PC, Jennings A, Quan H and Forster AJ. A modification of the Elixhauser comorbidity measures into a point system for hospital death using administrative data. Menendez ME, Neuhaus V, van Dijk CN, Ring D.
