#' Fisher Transformation: r to z
#' Argument: Correlation
#' Output: Fisher's z
#' @param r = correlation
#' @export
r2z <- function(r){
if((sum(r<(-1) | r>1))!=0) stop("Corrélation invalide!")
z <- 0.5 * log((1 + r)/(1 - r))
return(z)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.