perm_distribution() calculates the permutation distribution for
several test statistics.
perm_distribution(x, y, type, randomization = FALSE, n.rep = 10000)Vector with permutation distribution of the test statistic specified
by type.
a (non-empty) numeric vector of data values.
a (non-empty) numeric vector of data values.
a character string specifying the desired test statistic. It must
be one of "HL11" (default),
"HL12", "HL21", "HL22", "MED1", and "MED2", where
"HL1", "HL2" and "MED" specify the location
estimator and the numbers 1 and 2 the scale
estimator, see the vignette
vignette("robnptests") for more information.
a logical value indicating whether the p-value should be
computed from a permutation (FALSE, default) or a
randomization (TRUE) distribution.
an integer value specifying the number of random splits used to
calculate the randomization distribution if method = "randomization".
The default is n.rep = 10000.
Missing values in either x or y are not allowed.