Numeric vector of responses if treatment is not NULL.
If treatment is NULL, then response must be an N by 2 data frame or matrix,
such that the first column represents response and the second column represents treatment.
treatment
Vector of treatments, which need not be numerical.
If response is an N by 2 data frame or matrix, then treatment should be set to NULL.
num.sim
The number of simulations performed.
If num.sim is smaller than one, then the permutation test is not performed.
Value
The output consists of results from calling aov and from the permutation F-test.
Details
The one-way analysis of variance F-test is performed, regardless of the value of num.sim.
The permutation F-test is performed whenever num.sim is at least 1.
The p-value of the permutation F-test is estimated by randomly generating the permutations,
and is hence not exact.
The larger the value of num.sim the more precise the estimate of
the p-value of the permutation F-test, but also the greater the computing time.
Thus, the p-value of the permutation F-test is not based on asymptotic approximation.
References
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.