Irescale (version 0.2.6)

calculatePvalue: p-value calculation.

Description

calculatePvalue calculates a p-value for the null hypothesis.

Usage

calculatePvalue(sample, value, mean)

Arguments

sample

the vector that will be used as reference.

value

the value of interest.

mean

the mean of interest.

Examples

Run this code
# NOT RUN {
fileInput<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(fileInput)
distM<-calculateEuclideanDistance(input$data)
I<-calculateMoranI(distM = distM,varOfInterest = input$varOfInterest)
vI<-resamplingI(1000,distM, input$varOfInterest) # This is the permutation
statsVI<-summaryVector(vI)
corrections<-iCorrection(I,vI)
pv<-calculatePvalue(corrections$scaledData,corrections$newI,corrections$summaryScaledD$mean)
# }

Run the code above in your browser using DataLab