OnlyPolytraumaPatients: Only polytrauma patients

Description Usage Arguments

View source: R/OnlyPolytraumaPatients.R

Description

Keeps only the polytrauma patients. Polytrauma is here defined as at least two injuries scored above a certain abbreviated injury scale (AIS) score cutoff in at least two different body regions.

Usage

1
2
3
OnlyPolytraumaPatients(sample, ais.variables = c("head_and_neck", "face",
  "chest", "extremities", "external"), ais.cutoff = 2,
  remove.missing = FALSE)

Arguments

sample

Data frame. The study sample. No default.

ais.variables

Character vector. The names of the variables with AIS scores for each body region. Defaults to c("head_and_neck", "face", "chest", "extremities", "external").

ais.cutoff

Integer vector of length 1 between 1 and 6. The cutoff above which an injury is counted for polytrauma. Defaults to 2.

remove.missing

Logical vector of length 1. If TRUE all observations with missing AIS, as detected by is.na, are removed from the sample. Defaults to FALSE.


martingerdin/bengaltiger documentation built on Feb. 29, 2020, 4:46 p.m.