boot_ci: Bootstrapped CIs

Description Usage Arguments

Description

Returns a data_frame with columns stat (names of provided stats), observed (observed value of stats applied to data, t0 in boot), and ci_lo/ci_hi.

Usage

1
2
boot_ci(data, stats, R = 1000, ci_level = 0.95, h0 = NULL, na_rm = TRUE,
  ...)

Arguments

data

Data that's provided to 'boot'

stats

Function or named vector/list of statistics to compute bootstrapped CIs for. Statistics should take data as their first argument, and indices as their second, and return a scalar statistic.

R

Number of bootstrap samples (default: 1000)

ci_level

Percentage for CI (default 0.95) or lower/upper quantiles of CI.

h0

Optional null value of statistics for p value computation

na_rm

Whether to remove NAs in quantile calculation

...

Additional arguments passed to boot.


kleinschmidt/daver documentation built on May 20, 2019, 12:33 p.m.