comorbindex | R Documentation |
Given a table of comorbidity indicator variables, compute the AHRQ index for risk of in-hospital mortality.
comorbindex(df, indextype = "mort")
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 |
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'.
A vector of comorbidity index values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.