Performs pairwise comparisons between group levels with corrections for multiple testing.
pairwise.var.test(resp, fact, p.method = "fdr",
alternative = c("two.sided","less", "greater"))
response vector.
grouping factor.
method for p-values correction. See help of p.adjust
.
a character string specifying the alternative hypothesis, must be one of "two.sided"
(default), "greater"
or "less"
.
a character string giving the name of the test.
a character string giving the name(s) of the data.
table of results.
method for p-values correction.
# NOT RUN {
require(graphics)
# Bartlett test
bartlett.test(count~spray,data=InsectSprays)
# Pairwise comparisons
pairwise.var.test(InsectSprays$count,InsectSprays$spray)
# }
Run the code above in your browser using DataLab