aov.P {MultNonParam}R Documentation

One-way ANOVA using permutation tests

Description

aov.P uses permutation tests instead of classic theory tests to run a one-way or two-way ANOVA.

Usage

aov.P(dattab, treatment = NULL, be = NULL)

Arguments

dattab

The table on which the ANOVA has to be done, or a vector of responses.

treatment

If dattab is a table, ignored. If dattab is a vector, a vector of treatment labels.

be

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.

Details

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.

Value

A list with fields pv, the p-value obtained with the permutation tests, and tot, the total number of permutations.


[Package MultNonParam version 1.3.9 Index]