ciperm.twosample: Confidence interval for the two-sample difference in means

View source: R/twosample.R

ciperm.twosampleR Documentation

Confidence interval for the two-sample difference in means

Description

Calculates the permutation-test based confidence interval for the difference in means. Works in both for univariate and multivariate cases.

Usage

ciperm.twosample(x, y, ...)

Arguments

x

Observations from sample 1. A numeric vector of length N_1 or a matrix of dim N_1 x K.

y

Observations from sample 2. A numeric vector of length N_2 or a matrix of dim N_2 x K.

...

Additional arguments to ciperm or ciperm.multi

Details

It is the confidence interval for mean(y) - mean(x)

Value

Vector or array of lower and upper ends of the confidence interval

See Also

ciperm, ciperm.multi

Examples

x <- rnorm(20)
y <- rnorm(15) + 0.3

ciperm.twosample(x,y, M = 2000, level = 0.99) ## 99% confidence interval, 2000 permutations.


naolsen/ciperm documentation built on July 1, 2022, 3:41 p.m.