Learn R Programming

spEDM (version 1.5)

simplex: simplex forecast

Description

simplex forecast

Usage

# S4 method for sf
simplex(
  data,
  target,
  lib = NULL,
  pred = NULL,
  E = 1:10,
  tau = 1,
  k = E + 2,
  nb = NULL,
  threads = detectThreads(),
  trend.rm = TRUE
)

# S4 method for SpatRaster simplex( data, target, lib = NULL, pred = NULL, E = 1:10, tau = 1, k = E + 2, threads = detectThreads(), trend.rm = TRUE )

Value

A list

xmap

self mapping prediction results

varname

name of target variable

Arguments

data

The observation data.

target

Name of target variable.

lib

(optional) Libraries indices.

pred

(optional) Predictions indices.

E

(optional) Dimensions of the embedding.

tau

(optional) Step of spatial lags.

k

(optional) Number of nearest neighbors used for prediction.

nb

(optional) The neighbours list.

threads

(optional) Number of threads.

trend.rm

(optional) Whether to remove the linear trend.

Examples

Run this code
columbus = sf::read_sf(system.file("shapes/columbus.gpkg", package="spData"))
# \donttest{
simplex(columbus,target = "CRIME")
# }

Run the code above in your browser using DataLab