Learn R Programming

psychmeta (version 2.6.4)

adjust_n_r: Adjusted sample size for a non-Pearson correlation coefficient for use in a meta-analysis of Pearson correlations

Description

This function is used to compute the adjusted sample size of a non-Pearson correlation (e.g., a tetrachoric correlation) based on the correlation and its estimated error variance. This function allows users to adjust the sample size of a correlation corrected for sporadic artifacts (e.g., unequal splits of dichotomous variables, artificial dichotomization of continuous variables) prior to use in a meta-analysis.

Usage

adjust_n_r(r, var_e)

Value

A vector of adjusted sample sizes.

Arguments

r

Vector of correlations.

var_e

Vector of error variances.

Details

The adjusted sample size is computed as:

n_adjusted=(r^2-1)^2+var_evar_en_adjusted = ((r^2 - 1)^2 + var_e) / var_e

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"). Equation 3.7.

Examples

Run this code
adjust_n_r(r = .3, var_e = .01)

Run the code above in your browser using DataLab