Hi everyone, I want to use the Fisher r-to-z transformation as part of a hypothesis test of r. I can't find an R function that can do that. Am I missing it? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson at visi.com | <dtml-var pithy_quote> | http://linux.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> -----Original Message----- > From: Tim Wilson [mailto:wilson at visi.com] > Sent: Friday, July 26, 2002 2:59 PM > To: R-help > Subject: [R] Fisher r-to-z transformation > > Hi everyone, > > I want to use the Fisher r-to-z transformation as part of a hypothesis > test of r. I can't find an R function that can do that. Am I missing > it?[WNV] z <- atanh(r) or you could use R2Z <- function(r) log((1+r)/(1-r)) z <- R2Z(r) Bill Venables> -Tim > > -- > Tim Wilson | Visit Sibley online: | Check out: > Henry Sibley HS | http://www.isd197.org | http://www.zope.com > W. St. Paul, MN | | http://slashdot.org > wilson at visi.com | <dtml-var pithy_quote> | http://linux.com > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Tim Wilson wrote:> I want to use the Fisher r-to-z transformation as part of a hypothesis > test of r. I can't find an R function that can do that. Am I missing > it?Tim: Below is a Fisher transformation I wrote some time ago. Hope it helps, Chuck Cleland fisher.z <- function(x) { ifelse(x == 0, 0, 0.5 * log((1 + abs(x))/(1 - abs(x))) * (x/abs(x))) }> fisher.z(seq(-1, 1, .05))[1] -Inf -1.83178082 -1.47221949 -1.25615281 -1.09861229 [6] -0.97295507 -0.86730053 -0.77529871 -0.69314718 -0.61838131 [11] -0.54930614 -0.48470028 -0.42364893 -0.36544375 -0.30951960 [16] -0.25541281 -0.20273255 -0.15114044 -0.10033535 -0.05004173 [21] 0.00000000 0.05004173 0.10033535 0.15114044 0.20273255 [26] 0.25541281 0.30951960 0.36544375 0.42364893 0.48470028 [31] 0.54930614 0.61838131 0.69314718 0.77529871 0.86730053 [36] 0.97295507 1.09861229 1.25615281 1.47221949 1.83178082 [41] Inf -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 25 Jul 2002, Tim Wilson wrote:> Hi everyone, > > I want to use the Fisher r-to-z transformation as part of a hypothesis > test of r. I can't find an R function that can do that. Am I missing > it? >See: http://davidmlane.com/hyperstat/A50760.html (Google first hit) fisher.r2z <- function(r) { 0.5 * (log(1+r) - log(1-r)) } round(fisher.r2z(seq(0,1,0.01)), 4) agrees with http://davidmlane.com/hyperstat/rtoz_table.html Roger -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no and: Department of Geography and Regional Development, University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._