esize: Standardized Mean Differences

View source: R/statistics.R View source: R/zzz-r4vn-inference.R

esizeiR Documentation

Standardized Mean Differences

Description

Calculates Cohen's d, Hedges' g, and Glass's delta.

Usage

esizei(
  n1,
  mean1,
  sd1,
  n2,
  mean2,
  sd2,
  level = 0.95,
  digits = 3,
  show = TRUE,
  console = FALSE
)

esize(
  x,
  by,
  data = NULL,
  level = 0.95,
  digits = 3,
  show = TRUE,
  console = FALSE
)

Arguments

n1, mean1, sd1

Summary statistics for group 1.

n2, mean2, sd2

Summary statistics for group 2.

level

Confidence level.

digits

Decimal places.

show

Logical; open the formatted result in the Viewer. Default TRUE.

console

Logical; also print the traditional text result in the Console. Default FALSE.

x

Numeric variable.

by

Two-level grouping variable.

data

Data frame. If NULL, active data is used.

Value

Invisibly returns an object of class r4vn_stat.

Examples

esizei(40, 12, 3, 35, 14, 4)

R4VN documentation built on Sept. 30, 2026, 5:13 p.m.