Takes pairs of Pearson r's (correlation coefficients) and the accompanying n's (sample sizes) and returns their average.
averagePearsonRs(rs, ns, FishersZ = TRUE)
| rs | The correlation coefficients. |
|---|---|
| ns | The sample sizes. |
| FishersZ | Whether to compute the average through Fisher's z (only method implemented as of the writing of this document). |
averagePearsonRs(c(.3, .4, .6), c(70, 80, 50));#> [1] 0.4218418