simulaMoran: Evaluates the p-value of the Moran's I

Description Usage Arguments Value

View source: R/moran.R

Description

Evaluates the p-value of the Moran's I

Usage

1
simulaMoran(x, y = NULL, W = NULL, shp = NULL, nsims = 999)

Arguments

x

numeric vector with values of variable 1. Defaults to NULL.

y

numeric vector with values of variable 2. Defaults to NULL (not bivariate).

W

numeric matrix of neighbourhood matrix from nbMatrix. Defaults to NULL.

shp

shapefile or simple feature to process the neighbourhood. Expected structure: id, x, y(optional)

nsims

numeric value of number of simulations. Defaults to 999.

Value

list with global_sim (global Moran's I simulations) and local_sim (local Moran's I simulations)and lagged (neighbours' mean)


biamouras/accSeg documentation built on Nov. 19, 2020, 8:07 a.m.