| test.u | R Documentation |
Performs the Mann-Whitney (Wilcoxon rank-sum) test for comparing two independent groups, with statistical summary and graphical visualization.
test.u(
...,
title = "Mann-Whitney Test",
xlab = "Group",
ylab = "Value",
style = c("boxplot", "violin", "mono", "halfeye"),
help = FALSE,
verbose = TRUE
)
... |
Two numeric vectors or a data.frame with two numeric columns. |
title |
Plot title. Default: "Mann-Whitney Test". |
xlab |
Label for x-axis. Default: "Group". |
ylab |
Label for y-axis. Default: "Value". |
style |
Plot aesthetic style. |
help |
Logical. If TRUE, prints a detailed explanation. Default: FALSE. |
verbose |
Logical. If TRUE, prints detailed messages. Default: TRUE. |
Invisible list with:
Group-wise statistical summary
Test result (htest object)
ggplot2 visualization object
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.