ItoPearsonCorrelation: Calculate the equivalence r from the I percentile in the...

Description Usage Arguments Value Examples

View source: R/rectifiedI.R

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

1
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

1
2
3
4
5
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))

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.