Re: [R] compute the mean of two (or more) correlations

2011-07-26 Thread Michael Dewey
At 15:47 25/07/2011, Joshua Wiley wrote: Hi Martin, Off hand I do not know of a pre-defined function to do it, but the z-transformation is just the inverse hyperbolic function, the mean is just the mean, and the back transformation is the hypoerbolic function so... x - c(.5, .4)

Re: [R] compute the mean of two (or more) correlations

2011-07-26 Thread Viechtbauer Wolfgang (STAT)
And at that point, one is essentially doing a meta-analysis. For example: library(metafor) ri - c(.5, .4) ni - c(40, 25) res - rma(ri=ri, ni=ni, measure=ZCOR, method=FE) predict(res, transf=transf.ztor, digits=2) pred se ci.lb ci.ub 0.46 NA 0.24 0.64 You also get the CI (in addition to

[R] compute the mean of two (or more) correlations

2011-07-25 Thread Martin Batholdy
Hi, is there a function in R that computes the mean of two (or more) correlations? (that is doing the z-transformation of the correlations, computing the mean of the z-values and then retransform it to a correlation). Or is there a fisher-table implemented? I have not found anything via

Re: [R] compute the mean of two (or more) correlations

2011-07-25 Thread Joshua Wiley
Hi Martin, Off hand I do not know of a pre-defined function to do it, but the z-transformation is just the inverse hyperbolic function, the mean is just the mean, and the back transformation is the hypoerbolic function so... x - c(.5, .4) tanh(mean(atanh(x))) should do