perm.test(x,y,fun,alternative = "two.sided", trials = 1000,...)
Pitman, E. J. G., "Significance tests which may be applied to samples from any population", Royal Statistical Society Supplement, 1937; 4: 119-130 and 225-32 (parts I and II).
Pitman, E. J. G., "Significance tests which may be applied to samples from any population. Part III. The analysis of variance test", Biometrika, 1938; 29: 322-335.
E. S. Edgington, Randomization tests, 3rd ed. New York: Marcel-Dekker, 1995. Phillip I. Good, Permutation, Parametric and Bootstrap Tests of Hypotheses, 3rd ed., Springer, 2005. ISBN 0-387-98898-X
Good, P. (2002) Extensions of the concept of exchangeability and their applications, J. Modern Appl. Statist. Methods, 1:243-247.
Lunneborg, Cliff. Data Analysis by Resampling, Duxbury Press, 1999. ISBN 0-534-22110-6.
Pesarin, F. 2001. Multivariate Permutation Tests, John Wiley & Sons.
Welch, W. J., Construction of permutation tests, Journal of American Statistical Association, 85:693-698, 1990.
Wang, B. and Wertelecki, W. (2012) Density Estimation for Data With Rounding Errors. Computational Statistics and Data Analysis, (in press), doi: 10.1016/j.csda.2012.02.016.
gof,mediation.test
.x1 = rnorm(100,34.5,1.5)
x2 = round(x1)
perm.test(x1,x2,trials=100)
Run the code above in your browser using DataLab