Moran.I.calc: Moran's I Test for Spatial Autocorrelation Among Residuals

View source: R/spatial_correlation_functions.R

Moran.I.calcR Documentation

Moran's I Test for Spatial Autocorrelation Among Residuals

Description

Moran.I.calc computes Moran's I autocorrelation coefficient of *resid* given a matrix of weights defined as the inverse of a distance matrix of spatial coordinates.

Usage

Moran.I.calc(data)

Arguments

data

numeric data frame with three columns. First column should represent the "x"-coordinates, 2nd column represents the "y"-coordinates, and the 3rd column represents a numeric vector of model residuals

Value

A list containing the elements observed, expected, sd, & p.value

See Also

Moran.I


ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.