Learn R Programming

colleyRstats (version 0.0.1)

rFromWilcox: Calculation based on Rosenthal's formula (1994). N stands for the number of measurements.

Description

Calculation based on Rosenthal's formula (1994). N stands for the number of measurements.

Usage

rFromWilcox(wilcoxModel, N)

Value

Invisibly returns a list with components:

  • r: effect size as a numeric scalar.

  • z: corresponding z-statistic.

  • text: character string that is also sent to the console.

Arguments

wilcoxModel

the Wilcox model

N

number of measurements in the experiment

Examples

Run this code
set.seed(1)
d <- data.frame(
  group = rep(c("A", "B"), each = 10),
  value = rnorm(20)
)
w <- stats::wilcox.test(value ~ group, data = d, exact = FALSE)
rFromWilcox(w, N = nrow(d))

Run the code above in your browser using DataLab