t.two.sample: Statistic for Bootstrapped Two-sample t-test.

Description Usage Arguments Value

View source: R/boot.R

Description

The function to pass to bcaboot to perform the two-sample t-test via bootstrapping.

Usage

1
2
## S3 method for class 'two.sample'
t(data, id = 1:nrow(data))

Arguments

data

(m + n) x 2 matrix containing the first and second samples, with the first column containing the data values and the second column containing an indicator for which sample the data values are from.

id

the id variable used by boot

Value

A single value of the difference of the two bootstrapped sample means.


ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.