R/transformations.R

Defines functions r2z z2r z2d r2d

Documented in r2d r2z z2d z2r

# fisher's z-transformation
r2z <-
function(r) {
	return(0.5*(log(1+r)-log(1-r)))
}

z2r <-
function(z) {
	return( (exp(2*z)-1) / (exp(2*z)+1) )
}

z2d <-
function(z) {
	return(r2d(z2r(z)))
}

r2d <-
function(r) {
	return(2*r/(sqrt(1-r*r)))
}

Try the metatest package in your browser

Any scripts or data that you put into this service are public.

metatest documentation built on May 1, 2019, 10:19 p.m.