Bootstrap confidence intervals and p values
Arguments
- vals
numeric vector
- grps
character vector, allowed values are "ctrl" and "actv" and used to slice
x
into two vectors with values to be compared.- reference_arm
character vector of length 1, name of the reference arm in
grps
- na_replacement
scalar (or
NULL
), ifNULL
missing values will be removed. Otherwise, missing values will be replaced by the value ofna_replacement
- n_samples
single integer, number of bootstrap samples
- alpha
numeric, 1.0 - confidence_level