Performs a full randomization test on paired vectors of data.
Usage
frt.paired(x, y, alternative = "two.sided")
Arguments
x
a numeric vector
y
a numeric vector
alternative
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.
Value
numeric
the probability of the null hypothesis of no difference between means.
Details
x and y must have the same length.
The function tests $2^n$ possible arrangements, where n is the length of x and y. This number (just as computational times and memory requirements) grows rapidly with n.
References
Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley.