add_tqip_cohorts: Add TQIP cohorts to a dataset

View source: R/create_cohorts.R View source: R/add_tqip_cohorts.R

add_tqip_cohortsR Documentation

Add TQIP cohorts to a dataset

Description

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.

Usage

add_tqip_cohorts(dataset)

add_tqip_cohorts(dataset)

Arguments

dataset

A data frame containing AIS codes as columnes with names containing AIS as created by the rofi package. No default.

Value

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

Prerequisites

Need to gave gone through the clean_all_predictors() and clean_audit_filters() function. In order to account for intubation status and GCS.

How to use

new.dataset <- add_tqip_cohorts(combined.dataset) #apply function to combined.dataset and save in a new.dataset


martingerdin/rofi documentation built on Dec. 3, 2024, 12:10 a.m.