pairwise.perm.var.test: Pairwise permutation F tests

View source: R/pairwise.perm.var.test.R

pairwise.perm.var.testR Documentation

Pairwise permutation F tests

Description

Performs pairwise comparisons between group levels with corrections for multiple testing.

Usage

pairwise.perm.var.test(resp, fact, p.method = "fdr",
  alternative = c("two.sided","less", "greater"), nperm = 999,
  progress = TRUE)

Arguments

resp

response vector.

fact

grouping factor.

p.method

method for p-values correction. See help of p.adjust.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".

nperm

number of permutations.

progress

logical indicating if the progress bar should be displayed.

Details

The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.

Value

method

a character string giving the name of the test.

data.name

a character string giving the name(s) of the data.

p.value

table of results.

p.adjust.method

method for p-values correction.

permutations

number of permutations.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

pairwise.var.test

Examples

set.seed(0921)
response <- c(rnorm(10),rpois(10,0.2),rnorm(10,,2))
fact <- gl(3,10,labels=LETTERS[1:3])

# Not enough permutations here but it runs faster

# permutation Bartlett test
perm.bartlett.test(response~fact,nperm=49)

# Pairwise comparisons
pairwise.perm.var.test(response,fact,nperm=49)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.