get_contingency_table | R Documentation |
get_ward_specialty_contingency_table
returns a table showing the relationship
between ward types and main specialties or disease groups. Used in patient boarding analysis to infer
what type of patients a given ward is designed to accommodate. The function is currently using
a 1-to-1 mapping between ICD-10 codes and CCSR categories. There is a possibility to
include a 1-to-many mapping in the analysis in the future if needed.
get_contingency_table(ipData, vars, scaleBy = "none", returnPlot = FALSE)
ipData |
Hospital inpatient episode data with at least the following fields:
|
vars |
Variables of interest - either |
scaleBy |
Whether and how entries of contingency table should be scaled.
|
returnPlot |
A boolean value indicating whether a plot (heatmap) should be return. If |
A contingency table (default) or a heatmap showing the relationship between ward type and main specialty or CCSR categories.
## Not run: get_contingency_table( ip_data = inpatient_data, vars = "ws", scaleBy = "none", returnPlot = FALSE ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.