| test_u | R Documentation |
Performs the Mann-Whitney U test (Wilcoxon rank-sum test) to compare two independent groups, providing a statistical summary and graphical visualization.
test_u(
...,
title = "Mann-Whitney Test",
xlab = "Group",
ylab = "Value",
style = c("boxplot", "violin", "mono", "halfeye"),
colors = NULL,
help = FALSE,
verbose = TRUE
)
... |
Two numeric vectors or a data frame containing exactly two numeric columns. |
title |
Character string specifying the plot title.
Default: |
xlab |
Character string specifying the x-axis label.
Default: |
ylab |
Character string specifying the y-axis label.
Default: |
style |
Character string specifying the plot style generated by the
function. One of |
colors |
Optional character vector specifying the plot colors. |
help |
Logical. If |
verbose |
Logical. If |
An invisible list containing the following components:
summaryGroup-wise descriptive statistics.
testAn object of class htest containing the
Mann-Whitney U test results.
plotA plot object generated using ggplot2.
x <- c(1, 3, 5, 6)
y <- c(7, 8, 9, 12)
data <- data.frame(groupA = x, groupB = y)
test_u(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.