wilcoxonR | R Documentation |
Calculates r effect size for Mann-Whitney two-sample rank-sum test, or a table with an ordinal variable and a nominal variable with two levels; confidence intervals by bootstrap.
wilcoxonR(
x,
g = NULL,
group = "row",
coin = FALSE,
ci = FALSE,
conf = 0.95,
type = "perc",
R = 1000,
histogram = FALSE,
digits = 3,
reportIncomplete = FALSE,
...
)
x |
Either a two-way table or a two-way matrix. Can also be a vector of observations. |
g |
If |
group |
If |
coin |
If |
ci |
If |
conf |
The level for the confidence interval. |
type |
The type of confidence interval to use.
Can be any of " |
R |
The number of replications to use for bootstrap. |
histogram |
If |
digits |
The number of significant digits in the output. |
reportIncomplete |
If |
... |
Additional arguments passed to the |
r is calculated as Z divided by square root of the total observations.
This statistic reports a smaller effect size than does
Glass rank biserial correlation coefficient
(wilcoxonRG
), and cannot reach
-1 or 1. This effect is exaserbated when sample sizes
are not equal.
Currently, the function makes no provisions for NA
values in the data. It is recommended that NA
s be removed
beforehand.
When the data in the first group are greater than
in the second group, r is positive.
When the data in the second group are greater than
in the first group, r is negative.
Be cautious with this interpretation, as R will alphabetize
groups if g
is not already a factor.
When r is close to extremes, or with small counts in some cells, the confidence intervals determined by this method may not be reliable, or the procedure may fail.
A single statistic, r. Or a small data frame consisting of r, and the lower and upper confidence limits.
Salvatore Mangiafico, mangiafico@njaes.rutgers.edu
https://rcompanion.org/handbook/F_04.html
freemanTheta
,
wilcoxonRG
data(Breakfast)
Table = Breakfast[1:2,]
library(coin)
chisq_test(Table, scores = list("Breakfast" = c(-2, -1, 0, 1, 2)))
wilcoxonR(Table)
data(Catbus)
wilcox.test(Steps ~ Gender, data = Catbus)
wilcoxonR(x = Catbus$Steps, g = Catbus$Gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.