Description Usage Arguments Value
View source: R/resampling_test.R
The method is an alternative to mean(outer(x, y, `<`))
which doesn't allocate memory and is thus much faster.
1 2 | resampling_test(x, y, alternative = c("two.sided", "less", "greater"),
mu = 0, nmax = length(x) * length(y))
|
x |
first numeric vector |
y |
second numeric vector |
alternative |
how are x and y compared. Same principles as
|
mu |
test if there is at least distance mu between x and y.
Equivalent to calling |
nmax |
the maximum number of comparisons. Can be used if the full precision is not needed. Defaults to making all possible comparisons |
the p-value, ie. the fraction of elements in x that are smaller than y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.