calculatePvalue: p-value calculation.

Description Usage Arguments Examples

View source: R/rectifiedI.R

Description

calculatePvalue calculates a p-value for the null hypothesis.

Usage

1

Arguments

sample

the vector that will be used as reference.

value

the value of interest.

mean

the mean of interest.

Examples

1
2
3
4
5
6
7
8
fileInput<-system.file("testdata", "chen.csv", package="Irescale")
input<-loadFile(fileInput)
distM<-calculateEuclideanDistance(input$data)
I<-calculateMoranI(distM = distM,varOfInterest = input$varOfInterest)
vI<-resamplingI(distM, input$varOfInterest, n=1000) # This is the permutation
statsVI<-summaryVector(vI)
corrections<-iCorrection(I,vI)
pv<-calculatePvalue(corrections$scaledData,corrections$newI,corrections$summaryScaledD$mean)

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