Learn R Programming

RVAideMemoire (version 0.9-69-3)

dunn.test: Dunn's test

Description

Wrapper for dunn.test, for more convenient result printing.

Usage

dunn.test(resp, fact, p.method = "fdr", alpha = 0.05)

Arguments

resp

response vector.

fact

grouping factor.

p.method

method for p-values correction. See help of dunn.test. Names "fdr", "BH" and "BY" (as used with the classic p.adjust) are also allowed.

alpha

the nominal level of significance used in the step-up/step-down multiple comparisons procedures (see help of dunn.test).

Value

method

a character string indicating 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.

Details

See help of the dunn.test function for more explanations.

See Also

dunn.test

Examples

Run this code
# NOT RUN {
set.seed(1024)
response <- c(rpois(20,1),rpois(20,1.5),rpois(20,2.5))
fact <- gl(3,20,labels=LETTERS[1:3])
kruskal.test(response~fact)
dunn.test(response,fact)
# }

Run the code above in your browser using DataLab