This function computes an approximate confidence interval of a point estimate (i.e. the test statistic).
Usage
computeCI(
obs,
rnd,
conf.level = 0.95,
type = c("standard", "percentile"),
na.rm = FALSE,
...
)
Arguments
- obs
a numeric scalar representing the observed value of the summary statistic. Used only if
type = "standard"
- rnd
numerical vector containing the permutation/bootstrap replication of the statistics.
- conf.level
the desired confidence level.
- type
character string indicating which formula to use in the computation of the confidence interval. Available options are:
"standard"
the standard confidence interval
"percentile"
the percentile confidence interval
- na.rm
logical, whether NA values should be removed before computation. Defaults to
FALSE
.- ...
further arguments to
computeStandardCI
orcomputePercentileCI
Value
A named numeric vector with 2 elements, lower
and upper
,
the lower and upper bounds of the confidence interval
for the point estimate.