Learn R Programming

psychmeta (version 2.3.4)

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.

Examples

Run this code
# NOT RUN {
var_error_g(g = 1, n1 = 30, n2 = 30)
var_error_g(g = 1, n1 = 60, n2 = NA)
# }

Run the code above in your browser using DataLab