var_error_r: Estimate the error variance of correlations

Description

Estimate the error variance of correlations

Usage

var_error_r(r, n, correct_bias = TRUE)

Arguments

r

Vector of correlations.

n

Vector of sample sizes.

correct_bias

Logical argument that determines whether to correct error-variance estimates for small-sample bias in correlations (TRUE) or not (FALSE).

Value

A vector of sampling-error variances.

Details

The sampling variance of a correlation is:

$$var_{e}=\frac{(1-r^{2})^{2}}{n-1}$$

This can be corrected for bias by first correcting the correlation (see correct_r_bias) prior to estimating the error variance.

References

Schmidt, F. L., & Hunter, J. E. (2015).
Methods of meta-analysis: Correcting error and bias in research findings (3rd ed.).
Thousand Oaks, CA: Sage. https://doi.org/10/b6mg. p. 99.