es_hedges_g | R Documentation |
Hedges g
es_hedges_g(n_0, n_1, m_0, m_1, s_0, s_1)
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 |
double representation of g
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
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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.