DHARMa (version 0.1.3)

testSpatialAutocorrelation: Test for spatial autocorrelation

Description

This function performs a standard test for spatial autocorrelation on the simulated residuals

Usage

testSpatialAutocorrelation(simulationOutput, x, y, plot = T)

Arguments

simulationOutput
an object with simulated residuals created by simulateResiduals
x
the x coordinate, in the same order as the data points. If set to "random", random values will be created
y
the x coordinate, in the same order as the data points. If set to "random", random values will be created
plot
whether to plot output

Details

performs Moran.I from the package ape to test against euklidian distance and plots the residuals against space

See Also

testUniformity, testZeroInflation, testTemporalAutocorrelation, testSimulatedResiduals, testOverdispersion, testOverdispersionParametric