[R] Fisher r-to-z transformation

Roger Bivand Roger.Bivand at nhh.no
Fri Jul 26 11:22:46 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list