powered by
embedding spatial cross sectional data
# S4 method for sf embedded(data, target, E = 3, tau = 1, nb = NULL, trend.rm = FALSE)# S4 method for SpatRaster embedded(data, target, E = 3, tau = 1, trend.rm = FALSE)
# S4 method for SpatRaster embedded(data, target, E = 3, tau = 1, trend.rm = FALSE)
A matrix
The observation data.
Name of target variable.
(optional) Dimensions of the embedding.
(optional) Step of spatial lags.
(optional) The neighbours list.
(optional) Whether to remove the linear trend.
columbus = sf::read_sf(system.file("shapes/columbus.gpkg", package="spData")) embedded(columbus,target = "CRIME", E = 3)
Run the code above in your browser using DataLab