var_error_g: Estimate the error variance Hedge's g values
Description
Allows for error variance to be estimated using total sample size of both groups being compared (in this case, supply sample sizes using only the n1 argument) or
using separate sample sizes for group 1 and group 2 (i.e., the groups being compared; in this case, supply sample sizes using both the n1 and n2 arguments).
Usage
var_error_g(g, n1, n2 = NA)
Arguments
g
Vector of Hedge's g values.
n1
Vector of sample sizes from group 1 (or the total sample size with the assumption that groups are of equal size, if no group 2 sample size is supplied).
n2
Vector of sample sizes from group 2.
Value
A vector of sampling-error variances.
References
Borenstein, M., Hedges, L. V., Higgins, J. P. T., & Rothstein, H. R. (2009).
Introduction to meta-analysis.
Chichester, UK: Wiley. Chapter 4.