boottesttwo: Two-sample bootstrap test

Description Usage Arguments Value Examples

Description

This function is used for the two-sample bootstrap test, where the test statistic is the difference between the two sample means

Usage

1
boottesttwo(x, y, b)

Arguments

x

vector containing first sample.

y

vector containing second sample.

b

number of bootstrap replications

Value

origtest: value of test statistic on original samples

pvalue: bootstrap p-value

teststatall: vector of bootstrap test statistics

Examples

1
2
3
x=rnorm(15,2,4)
y=rnorm(10,4,4)
boottesttwo(x,y,50)

StatComp18063/StatComp documentation built on May 13, 2019, 10:04 a.m.