On this page, you may access the R script that includes a pipeline to calculate and display a temporal phenome map using MIMIC2 data.
Disclaimer: This script is open-source and you are free to distribute, modify, and use without limitations. The original author is not responsible for any errors associated with the script and offers no guarantees as to its functionality. Attribution is appreciated.
Steps of Pipeline:
Step 1 Run algorithm to determine length of hospital stay for all adult
patients
Step 2 Specify bin size and determine interval cutoffs and subpopulations
Step 3 Obtain ICD-9 counts for the subpopulations
Step 4 Determine p-values for the developed table with Fisher's Exact
Test
Step 5 Data preparation for visualization
Step 6 Temporal phenome mapping routine
Step 7 Output pertinent dataframes into an RData file
Script to calculate and display a temporal phenome map using MIMIC2 data