es_hedges_g: Hedges g

View source: R/power.R

es_hedges_gR Documentation

Hedges g

Description

Hedges g

Usage

es_hedges_g(n_0, n_1, m_0, m_1, s_0, s_1)

Arguments

n_0

number of observations in group 0

n_1

number of observations in group 1

m_0

mean of group 0

m_1

mean of group 1

s_0

standard deviation of group 0

s_1

standard deviation of group 1

Value

double representation of g

References

Hedges, L. V. (1981). Distribution theory for Glass' estimator of effect size and related estimators. Journal of Educational Statistics, 6(2), 107-128. https://doi.org/10.3102/10769986006002107

Examples

if (requireNamespace('tidyr', quietly = TRUE)) {
  library('tidyr')

  mtcars %>%
    group_by(vs) %>%
    summarize(n = n(), m = mean(mpg), s = sd(mpg)) %>%
    pivot_wider(names_from = vs, values_from = c(n, m, s)) %>%
    rowwise() %>%
    mutate(hedges_g = es_hedges_g(n_0, n_1, m_0, m_1, s_0, s_1))
}


the-mad-statter/washu documentation built on May 11, 2023, 7:24 p.m.