Learn R Programming

geostan (version 0.8.1)

aple: Spatial autocorrelation estimator

Description

The approximate-profile likelihood estimator for the spatial autocorrelation parameter from a simultaneous autoregressive (SAR) model (Li et al. 2007).

Usage

aple(x, w, digits = 3)

Value

the APLE estimate, a numeric value.

Arguments

x

Numeric vector of values, length n. This will be standardized internally with scale(x).

w

An n x n row-standardized spatial connectivity matrix. See shape2mat.

digits

Number of digits to round results to.

Details

The APLE is an estimate of the spatial autocorrelation parameter one would obtain from fitting an intercept-only SAR model. Note, the APLE approximation is not reliable when the number of observations is large.

See Also

mc, moran_plot, lisa, sim_sar

Examples

Run this code
library(sf)
data(georgia)
w <- shape2mat(georgia, "W")
x <- georgia$ICE
aple(x, w)

Run the code above in your browser using DataLab