aov.P
uses permutation tests instead of classic theory tests to run a one-way or two-way ANOVA.
aov.P(dattab, treatment = NULL, be = NULL)
A list with fields pv, the p-value obtained with the permutation tests, and tot, the total number of permutations.
The table on which the ANOVA has to be done, or a vector of responses.
If dattab is a table, ignored. If dattab is a vector, a vector of treatment labels.
If dattab is a table, ignored. If dattab is a vector, a vector of end points of blocks. In this case, blocks must form contiguous subvectors of dattab. If null, no blocking.
The function calls a Fortran code to perform the permutation tests and the ANOVA. The function has to be applied directly on a cross-table of two variables.