Format Effect Size for APA Reporting

Description

Formats eta-squared or partial eta-squared with interpretation.

Usage

format_effect_size_anova(
  es,
  type = "partial_eta_sq",
  include_interpretation = FALSE
)

Arguments

es Numeric effect size value.
type Character. Type of effect size: "eta_sq", "partial_eta_sq", "omega_sq".
include_interpretation Logical. Include verbal interpretation.

Value

Character string with formatted effect size.

Examples

library("psych350lab")

# Format partial eta-squared effect size
format_effect_size_anova(0.125)
[1] "*η²p* = .12"
# Include interpretation of effect size
format_effect_size_anova(0.03, include_interpretation = TRUE)
[1] "*η²p* = .03 (small effect)"
# Use eta-squared instead
format_effect_size_anova(0.23, type = "eta_sq", include_interpretation = TRUE)
[1] "*η²* = .23 (large effect)"