View source: R/OnlyPatientsPresentingBefore.R
Keeps only the patients whom presented within a specific delay, where delay refers to the time between injury and arrival to hospital.
1 2 | OnlyPatientsPresentingBefore(study.sample, delay.variable.name = "delay",
delay.cutoff = 6, remove.missing = TRUE)
|
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 less 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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.