| hedges_g | R Documentation |
Computes the standardized mean difference (Hedges' g) between a treatment and a comparison group for a single numeric covariate, using the pooled within-group standard deviation and the small-sample correction factor used by the What Works Clearinghouse (WWC).
hedges_g(x, treatment, na.rm = TRUE)
x |
Numeric vector of covariate values. |
treatment |
Vector the same length as |
na.rm |
Logical; drop rows where |
The correction factor is \omega = 1 - 3 / (4N - 9), where
N = n_{treatment} + n_{comparison}.
A single numeric value: Hedges' g. Positive when the treatment group mean exceeds the comparison group mean.
What Works Clearinghouse (2022). Procedures Handbook (Version 5.0). U.S. Department of Education.
x <- c(5, 6, 7, 4, 5, 6)
g <- c(1, 1, 1, 0, 0, 0)
hedges_g(x, g) # 0.8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.