wilcox_test: wilcoxon signed rank test

Description Usage Arguments Value Examples

View source: R/wilcox_test_class.R

Description

A Mann-Whitney-Wilcoxon signed rank test compares ,the ranks of values in two groups. It is the non-parametric equivalent of a t-test. Multiple test corrected p-values are computed as indicators of significance for each variable/feature.

Usage

1
2
3
4
5
6
7
8
wilcox_test(
  alpha = 0.05,
  mtc = "fdr",
  factor_names,
  paired = FALSE,
  paired_factor = character(0),
  ...
)

Arguments

alpha

(numeric) The p-value cutoff for determining significance. The default is 0.05.

mtc

(character) Multiple test correction method. Allowed values are limited to the following:

  • "bonferroni": Bonferroni correction in which the p-values are multiplied by the number of comparisons.

  • "fdr": Benjamini and Hochberg False Discovery Rate correction.

  • "none": No correction.

The default is "fdr".

factor_names

(character) The name of a sample-meta column to use.

paired

(logical) Apply a paired test. The default is FALSE.

paired_factor

(character) The factor name containing sample ids for paired data. The default is character(0).

...

Additional slots and values passed to struct_class.

Value

A wilcox_test object.

struct object

Examples

1
M = wilcox_test(factor_name='class')

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.