[R] compute the mean of two (or more) correlations
Michael Dewey
info at aghmed.fsnet.co.uk
Tue Jul 26 12:23:27 CEST 2011
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)
>tanh(mean(atanh(x)))
>############
>
>should do it.
Assuming the correlations are based on the same sample size as I
would have thought one would otherwise have wanted to weight them.
>Cheers,
>
>Josh
>
>On Mon, Jul 25, 2011 at 7:11 AM, Martin Batholdy
><batholdy at googlemail.com> wrote:
> > 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 help.search() or google so far.
> >
> >
> > thank you!
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
>
>--
>Joshua Wiley
>Ph.D. Student, Health Psychology
>University of California, Los Angeles
>https://joshuawiley.com/
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html
More information about the R-help
mailing list