OnlyPediatricPatients: Only pediatric patients

Description Usage Arguments

View source: R/OnlyPediatricPatients.R

Description

Keeps only the pediatric patients in the sample.

Usage

1
2
OnlyPediatricPatients(study.sample, age.variable.name = "age",
  age.cutoff = 18, remove.missing = TRUE)

Arguments

study.sample

Data frame. The study sample. No default.

age.variable.name

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

age.cutoff

Numeric vector of length 1. The age cutoff. Defaults to 18, i.e. only observations with an age less than 18 are kept in the sample.

remove.missing

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