perm_distribution {robnptests} | R Documentation |
Permutation distribution for robust test statistics
Description
perm_distribution()
calculates the permutation distribution for
several test statistics.
Usage
perm_distribution(x, y, type, randomization = FALSE, n.rep = 10000)
Arguments
x |
a (non-empty) numeric vector of data values. |
y |
a (non-empty) numeric vector of data values. |
type |
a character string specifying the desired test statistic. It must
be one of |
randomization |
a logical value indicating whether the p-value should be
computed from a permutation ( |
n.rep |
an integer value specifying the number of random splits used to
calculate the randomization distribution if |
Details
Missing values in either x
or y
are not allowed.
Value
Vector with permutation distribution of the test statistic specified
by type
.