View source: R/pairwise.perm.var.test.R
pairwise.perm.var.test | R Documentation |
Performs pairwise comparisons between group levels with corrections for multiple testing.
pairwise.perm.var.test(resp, fact, p.method = "fdr",
alternative = c("two.sided","less", "greater"), nperm = 999,
progress = TRUE)
resp |
response vector. |
fact |
grouping factor. |
p.method |
method for p-values correction. See help of |
alternative |
a character string specifying the alternative hypothesis, must be one of |
nperm |
number of permutations. |
progress |
logical indicating if the progress bar should be displayed. |
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.
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. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
pairwise.var.test
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.