mwi: Multimorbidity Weighted Index (MWI)

View source: R/mwi.R

mwiR Documentation

Multimorbidity Weighted Index (MWI)

Description

cfi returns a summary dataset containing the multimorbidity weighted index for each patient.

Usage

mwi(dat = NULL, id = NULL, dx = "dx", version = 19, version_var = NULL)

Arguments

dat

dataset which has been properly prepared using 'prepare_data()'

id

variable of the unique patient identifier

dx

the column with the diagnoses and procedures (defaults to 'dx')

version

which version(s) of ICD your data contain (ICD-9 only: 9, ICD-10 only: 10, Both: 19)

version_var

variable which denotes if the diagnoses on that row are ICD-9 (9) or ICD-10 (10)

Details

This function uses data which has been properly prepared to calculate the multimorbidity weighted index developed by Wei et al. As this algorithm was never developed to require two diagnosis codes, and is weighted, we have excluded that feature from this function. See full package documentation for additional details.

Examples

mwi(dat = prepared_data, id = patient_id, dx = dx, version = 9, version_var = version)



multimorbidity documentation built on Feb. 16, 2023, 5:57 p.m.