Learn R Programming

spEDM (version 1.0)

gccm: geographical convergent cross mapping

Description

geographical convergent cross mapping

Usage

gccm(
  cause,
  effect,
  data,
  libsizes = NULL,
  E = 3,
  nb = NULL,
  RowCol = NULL,
  trendRM = TRUE
)

Value

A data.frame.

Arguments

cause

Name of causal variable.

effect

Name of effect variable.

data

The observation data, must be sf or SpatRaster object.

libsizes

(optional) A vector of library sizes to use.

E

(optional) The dimensions of the embedding.

nb

(optional) The neighbours list.

RowCol

(optional) Matrix of selected row and cols numbers.

trendRM

(optional) Whether to remove the linear trend.

Examples

Run this code
columbus = sf::read_sf(system.file("shapes/columbus.gpkg", package="spData")[1],
                       quiet=TRUE)
gccm("HOVAL", "CRIME", data = columbus)

Run the code above in your browser using DataLab