calculateLocalI {Irescale}R Documentation

Computing the Local Moran's I

Description

calculateLocalI calculates the local Moran's I without rescaling

Usage

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

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

[Package Irescale version 2.3.0 Index]