resampling_test: Test the difference between x and y using resampling.

Description Usage Arguments Value

View source: R/resampling_test.R

Description

The method is an alternative to mean(outer(x, y, `<`)) which doesn't allocate memory and is thus much faster.

Usage

1
2
resampling_test(x, y, alternative = c("two.sided", "less", "greater"),
  mu = 0, nmax = length(x) * length(y))

Arguments

x

first numeric vector

y

second numeric vector

alternative

how are x and y compared. Same principles as t.test

mu

test if there is at least distance mu between x and y. Equivalent to calling resampling_test(x, y + mu)

nmax

the maximum number of comparisons. Can be used if the full precision is not needed. Defaults to making all possible comparisons

Value

the p-value, ie. the fraction of elements in x that are smaller than y.


const-ae/proDD documentation built on Jan. 14, 2020, 9:34 a.m.