Learn R Programming

postHoc (version 0.1.3)

KruskalWallisAllPvalues: Calculates all p-values of pairwise comparisons using a Kruskal-Wallis test

Description

Calculates all p-values of pairwise comparisons using a Kruskal-Wallis test

Usage

KruskalWallisAllPvalues(y, g, padjust = "fdr")

Arguments

y

is a vector with the response

g

is a single classification factor

padjust

the method for adjusting for multiple comparisons following the convention of the functions stats::p. adjust(default = "fdr"), NULL or "none" does not adjust

Value

a vector with the p-values for comparing all the possible pairs.

Examples

Run this code
# NOT RUN {
KruskalWallisAllPvalues(y = DeIdentifiedExample$Y,
                                  g = DeIdentifiedExample$Treatment)
# }

Run the code above in your browser using DataLab