boot_test: Bootstrap Confidence Intervals via Resampling

Description Usage Arguments Details Examples

Description

Provides nonparametric confidence intervals via percentile-based resampling.

Usage

1
boot_test(x, y, conf.int, resample, med)

Arguments

x, y

numeric vectors of data values

conf.int

(optional) confidence level of the interval. Defaults to 0.90

resample

(optional) number of resamples. Defaults to 10,000

med

(optional) number indicating true difference in medians to test against. Defaults to zero.

Details

Refer to vignette for further information.

Examples

1
2
3
4
5
6
require(graphics)

a <- rnorm(25, 80, 35)
b <- rnorm(25, 100, 50)

boot_test(a, b, 0.95, 10000)

Example output

Median of a = 89.09; Median of b = 73.11

95% Bootstrap Confidence Interval
10,000 Resamples

   2.5%   97.5% 
-55.293  24.501 

Difference in Medians: Lacking Evidence (CI contains 0).

mbir documentation built on May 1, 2019, 10:11 p.m.