This function calculates R bootstrapped t-test statistics between x and y. It also calculates a variety of statistics such as percentile confidence intervals, bias, standard error and jackknife-after-bootstrap estimates.

boot_ttest(x, y, alpha = 0.05, R = 1000)

Arguments

x

a numeric vector

y

a numeric vector

alpha

significance level. used to calculate confidence intervals

R

number of replications

Value

  • inputs: list containing user inputs

  • boot: list containing results of bootstrapping, indices used for the pooled sample of x and y, t-statistics for every sample drawn, bias, standard error, jackknife-after-bootstrap

  • CI: returned if R >= 200. Lower and upper percentile confidence intervals.

See also

Rizzo, Maria L. "Statistical Computing with R". Chapman and Hall/CRC, 2007. Chapter 7