View source: R/create_cohorts.R View source: R/add_tqip_cohorts.R
add_tqip_cohorts | R Documentation |
This functions adds the TQIP cohorts Blunt multisystem without TBI, Blunt multistystem with TBI, Isolated severe TBI and Severe penetrating to a dataset.
This functions adds the TQIP cohorts Blunt multisystem without TBI, Blunt multistystem with TBI, Isolated severe TBI and Severe penetrating to a dataset.
add_tqip_cohorts(dataset)
add_tqip_cohorts(dataset)
dataset |
A data frame containing AIS codes as columnes with names containing AIS as created by the rofi package. No default. |
The original data frame with an added collumn "cohort" containing assigned cohorts
The original data frame with the added column "cohort" containing the added cohorts
Need to gave gone through the clean_all_predictors() and clean_audit_filters() function. In order to account for intubation status and GCS.
new.dataset <- add_tqip_cohorts(combined.dataset) #apply function to combined.dataset and save in a new.dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.