comorbindex: Compute the AHRQ comorbidity index for a dataset.

View source: R/comorbindex.R

comorbindexR Documentation

Compute the AHRQ comorbidity index for a dataset.

Description

Given a table of comorbidity indicator variables, compute the AHRQ index for risk of in-hospital mortality.

Usage

comorbindex(df, indextype = "mort")

Arguments

df

A data frame of comorbidity indicators (1 if the comorbidity is present, 0 if not). There must be a column for each of the comorbidities in the index.

indextype

Which index to calculate, see details

Details

AHRQ has produced risk indices for two outcomes: in-hospital mortality ('mort') and all-cause readmission ('readm'). In the future we may add some indices for USNWR outcomes 30-day survival and discharge to home. Adding these isn't entirely straightforward because they are calculated for individual specialties and conditions. The default is 'mort'.

Value

A vector of comorbidity index values


rplzzz/AHRQcomorb documentation built on Aug. 10, 2024, 8:12 a.m.