Learn R Programming

psychmeta (version 2.7.0)

var_error_r: Estimate the error variance of correlations

Description

Estimates the error variance of Pearson correlations (\(r\)).

Usage

var_error_r(r, n, correct_bias = TRUE)

Value

A vector of sampling-error variances.

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).

Details

The sampling variance of a Pearson correlation is approximately:

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

This can be corrected for bias in the sample correlation 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.). Sage. tools:::Rd_expr_doi("10.4135/9781483398105"). p. 99.

Examples

Run this code
var_error_r(r = .3, n = 30, correct_bias = TRUE)
var_error_r(r = .3, n = 30, correct_bias = FALSE)

Run the code above in your browser using DataLab