ItoPearsonCorrelation {Irescale} | R Documentation |
Calculate the equivalence r from the I percentile in the I-Null Distribution.
Description
ItoPearsonCorrelation
It calculates the Null distribution of I and determine what is the percentile of the real value of I,
then It calculates the inverse of the Normal Distribution(qnorm) to obtain the value of R to which this percentile belongs to.
Usage
ItoPearsonCorrelation(vI, n, medianCenter = TRUE)
Arguments
vI |
the vector obtained by resamplingI. |
n |
sample size |
medianCenter |
to center all the values to the median. The defaul value is TRUE |
Value
a list with r correlation equivalence and the rectified vector
Examples
fileInput <- system.file("testdata", "chen.csv", package="Irescale")
data <- loadFile(fileInput)
distM<-calculateEuclideanDistance(data$data)
vI<-resamplingI(distM,data$varOfInterest,n = 1000)
rectifiedI<- ItoPearsonCorrelation(vI, length(data))
[Package Irescale version 2.3.0 Index]