cfi | R Documentation |
cfi
returns a summary dataset containing the deficit-accumulation frailty index
for each patient.
cfi( dat = NULL, id = NULL, dx = "dx", version = 19, version_var = NULL, hcpcs = "yes" )
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) |
hcpcs |
whether or not HCPCS variables are included ("yes" or "no", where "yes" is the default) |
This function uses data which has been properly prepared to calculate the claims-based frailty index (CFI) developed by Kim et al. for each patient. 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. This function is based largely on the code available via the Harvard Dataverse.
dataframe with one row per patient, and a column for their patient id and a column with their frailty index.
cfi(dat = prepared_data, id = patient_id, dx = dx, version = 19, version_var = version)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.