Learn R Programming

RVAideMemoire (version 0.9-45-2)

pairwise.mood.medtest: Pairwise Mood's median tests

Description

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

Usage

pairwise.mood.medtest(resp, fact, exact = NULL, p.method = "fdr")

Arguments

resp
response vector.
fact
grouping factor.
exact
a logical indicating whether exact p-values should be computed.
p.method
method for p-values correction. See help of p.adjust.

Value

  • methoda character string indicating the name of the test.
  • data.namea character string giving the name(s) of the data.
  • p.valuetable of results.
  • p.adjust.methodmethod for p-values correction.

Details

If exact=NULL, Fisher's exact tests are used if the number of data values is < 200; otherwise chi-square tests are used (with Yates continuity correction).

See Also

mood.medtest

Examples

Run this code
set.seed(0904)
response <- c(rnorm(10),rnorm(10,0.8),rnorm(10,2))
fact <- gl(3,10,labels=LETTERS[1:3])
mood.medtest(response~fact)
pairwise.mood.medtest(response,fact)

Run the code above in your browser using DataLab