wilcoxon.test: Pairwise Wilcoxon Rank Sum Tests for multiple variables

View source: R/wilcoxon.R

wilcoxon.testR Documentation

Pairwise Wilcoxon Rank Sum Tests for multiple variables

Description

Pairwise Wilcoxon Rank Sum Tests for multiple variables

Usage

wilcoxon.test(data, numberOfIndexes, formula, p.adjust.method, ...)

Arguments

data

a data frame, columns corresponding to indexes and rows corresponding to samples. Further columns should be included with metadata. This is used in argument formula. Further details to be found in pairwise.wilcox.test.

numberOfIndexes

Integer corresponding to the number of indexes to analyze. This will be taken as column numbers by the function.

formula

Metadata group name. This will group samples according to a metadata column (corresponding to g argument in pairwise.wilcox.test, representing grouping vector or factor).

p.adjust.method

method for adjusting p values (see p.adjust). Can be abbreviated

...

Further arguments passed to pairwise.wilcox.test.

Value

Returns a data frame with adjusted p-values for all pairwise comparisons, performed on each variable (determined by numberOfIndexes).

Examples

wilcoxon_location<- wilcoxon.test(alpha_diversity_table, 4, "location", p.adjust.method="BH")


nuriamw/micro4all documentation built on May 2, 2024, 9:18 a.m.