mann_whitney: Mann-Whitney U Test (Also called Wilcoxon Rank-Sum Test)

View source: R/mann_whitney.R

mann_whitneyR Documentation

Mann-Whitney U Test (Also called Wilcoxon Rank-Sum Test)

Description

A nonparametric equivalent of the independent t-test

Usage

mann_whitney(
  data = NULL,
  iv_name = NULL,
  dv_name = NULL,
  iv_level_order = NULL,
  sigfigs = 3
)

Arguments

data

a data object (a data frame or a data.table)

iv_name

name of the independent variable (grouping variable)

dv_name

name of the dependent variable (measure variable of interest)

iv_level_order

order of levels in the independent variable. By default, it will be set as levels of the independent variable ordered using R's base function sort.

sigfigs

number of significant digits to round to

Value

the output will be a data.table object with all pairwise Mann-Whitney test results

Examples

mann_whitney(data = iris, iv_name = "Species", dv_name = "Sepal.Length")

kim documentation built on Oct. 9, 2023, 5:08 p.m.