langcog / metalab2

MetaLab -- Community-augmented meta-analysis
http://metalab.stanford.edu/
MIT License
21 stars 8 forks source link

Add computation of correlation from raw means, sd, and t-value in paired designs #74

Closed christinabergmann closed 6 years ago

christinabergmann commented 6 years ago

It is possible to retrieve correlations from raw means, sd, and t-values (by solving the t-value formula for r). If would be useful to add it to the computation of effect sizes instead of using imputed correlations.

The drived formula can be found in Appendix B of: Csibra, G., Hernik, M., Mascaro, O., Tatone, D., & Lengyel, M. (2016). Statistical treatment of looking-time data. Developmental Psychology, 52(4), 521-536. http://doi.org/10.1037/dev0000083

corr = (SD_1^2 + SD_2^2 - (n (x_1 - x_2)^2 / t^2)) / (2 SD_1 * SD_2)