OnlyEmergencyAdmissions: Only emergency admissions

Description Usage Arguments

View source: R/OnlyEmergencyAdmissions.R

Description

Keeps only emergency admissions in the sample

Usage

1
2
3
OnlyEmergencyAdmissions(study.sample,
  admission.type.variable.name = "ad_type",
  emergency.value = "Emergency", remove.missing = TRUE)

Arguments

study.sample

Data frame. The study sample. No default.

admission.type.variable.name

Character vector of length 1. The name of the admission type variable. Defaults to "ad_type".

emergency.value

Character or numeric vector of length 1. The value of the admission type variable that indicates that an admission is an emergency admission. Defaults to "Emergency".

remove.missing

Logical vector of length 1. If TRUE all observations with missing admission type, 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.