calculateLocalI: Computing the Local Moran's I

Description Usage Arguments Value Examples

View source: R/rectifiedI.R

Description

calculateLocalI calculates the local Moran's I without rescaling

Usage

1
calculateLocalI(z, distM, scaling = TRUE)

Arguments

z

vector with the var of interest

distM

distance matrix

scaling

to scale the variable of interest. The default value is set to TRUE

Value

a vector with the local Moran's I

Examples

1
2
3
4
fileInput <- system.file("testdata", "chen.csv", package="Irescale")
input <- loadFile(fileInput)
distM<-calculateEuclideanDistance(input$data)
localI<-calculateLocalI(input$varOfInterest,distM)

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