View source: R/EstimateTraumaticBrainInjuryProportion.R
Estimates the proportion of patients with traumatic brain injury.
1 2 3 4 5 | EstimateTraumaticBrainInjuryProportion(study.sample,
variable.name = "tbi", tbi.level = "Yes", digits = 3,
bootstrap.confidence.interval = TRUE, random.seed = NULL,
number.of.bootstrap.samples = 1000, save.to.disk = TRUE,
return.result = FALSE)
|
study.sample |
Data frame. The study sample. No default. |
variable.name |
Character vector of length 1. The name of the traumatic brain injury variable. Defaults to "tbi". |
tbi.level |
Character vector of length 1. The level of the traumatic brain injury variable that indicates a traumatic brain injury. Defaults to "Yes". |
digits |
Numeric vector of length 1. Must be a positive integer. The number of digits to use when rounding the proportion, and if applicable, the lower and upper bounds of the confidence interval. Defaults to 3. |
bootstrap.confidence.interval |
Logical vector of length 1. If TRUE a confidence interval is estimated using an emperical bootstrap. Deafults to TRUE. |
random.seed |
Numeric vector of length 1. Has to be an integer. The seed to use for random number generation. Only used if bootstrap.conficence.interval is TRUE. Defaults to NULL. |
number.of.bootstrap.samples |
Numeric vector of length 1. Has to be a positive integer. The number of bootstrap samples to use. Only used it bootstrap.confidence.interval is TRUE. Defaults to 1000. |
save.to.disk |
Logical vector of length 1. If TRUE the result is saved to disk in "results.rmd". Defaults to TRUE. |
return.result |
Logical vector of length 1. If TRUE the result is returned to the parent environment. Default to FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.