OnlyPatientsPresentingAfter: Only patients presenting later than a specific delay

Description Usage Arguments

View source: R/OnlyPatientsPresentingAfter.R

Description

Keeps only the patients whom presented later than a specific delay, where delay refers to the time between injury and arrival to hospital.

Usage

1
2
OnlyPatientsPresentingAfter(study.sample, delay.variable.name = "delay",
  delay.cutoff = 6, remove.missing = TRUE)

Arguments

study.sample

Data frame. The study sample. No default.

delay.variable.name

Character vector of length 1. The name of the delay variable. Defaults to "delay".

delay.cutoff

Numeric vector of length 1. The delay cutoff in hours. Defaults to 6, i.e. only observations with an delay equal to or more than 6 hours are kept in the sample.

remove.missing

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


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