simplex: simplex forecast

simplexR Documentation

simplex forecast

Description

simplex forecast

Usage

## S4 method for signature '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 signature 'SpatRaster'
simplex(
  data,
  target,
  lib = NULL,
  pred = NULL,
  E = 1:10,
  tau = 1,
  k = E + 2,
  threads = detectThreads(),
  trend.rm = TRUE
)

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.

Value

A list

xmap

self mapping prediction results

varname

name of target variable

Examples

columbus = sf::read_sf(system.file("shapes/columbus.gpkg", package="spData"))

simplex(columbus,target = "CRIME")


spEDM documentation built on April 4, 2025, 2:41 a.m.