Learn R Programming

psychmeta (version 2.6.4)

correct_r_dich: Correct correlations for artificial dichotomization of one or both variables

Description

Correct correlations for artificial dichotomization of one or both variables.

Usage

correct_r_dich(r, px = NA, py = NA, n = NULL, ...)

Value

Vector of correlations corrected for artificial dichomization (if n is supplied, corrected error variance and adjusted sample size is also reported).

Arguments

r

Vector of correlations attenuated by artificial dichomization.

px

Vector of proportions of the distribution on either side of the split applied to X (set as NA if X is continuous).

py

Vector of proportions of the distribution on either side of the split applied to Y (set as NA if Y is continuous).

n

Optional vector of sample sizes.

...

Additional arguments.

Details

r_c=r_obs[(p_X)p_X(1-p_X)][(p_Y)p_Y(1-p_Y)]r_c = r_obs / (ordinate(p_x) / sqrt(p_x * (1 - p_x) * ordinate(p_y) / sqrt(p_y * (1 - p_y))

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"). pp. 43–44.

Examples

Run this code
correct_r_dich(r = 0.32, px = .5, py = .5, n = 100)

Run the code above in your browser using DataLab