| pc | R Documentation |
optimal parameter search for pattern causality
## S4 method for signature 'sf'
pc(
data,
column,
target,
E = 2:10,
k = E + 2,
tau = 1,
style = 1,
lib = NULL,
pred = NULL,
dist.metric = "L2",
zero.tolerance = max(k),
relative = TRUE,
weighted = TRUE,
maximize = "positive",
threads = detectThreads(),
detrend = FALSE,
nb = NULL
)
## S4 method for signature 'SpatRaster'
pc(
data,
column,
target,
E = 2:10,
k = E + 2,
tau = 1,
style = 1,
lib = NULL,
pred = NULL,
dist.metric = "L2",
zero.tolerance = max(k),
relative = TRUE,
weighted = TRUE,
maximize = "positive",
threads = detectThreads(),
detrend = FALSE,
grid.coord = TRUE
)
data |
observation data. |
column |
name of library variable. |
target |
name of target variable. |
E |
(optional) embedding dimensions. |
k |
(optional) number of nearest neighbors used. |
tau |
(optional) step of spatial lags. |
style |
(optional) embedding style ( |
lib |
(optional) libraries indices (input needed: |
pred |
(optional) predictions indices (input requirement same as |
dist.metric |
(optional) distance metric ( |
zero.tolerance |
(optional) maximum number of zeros tolerated in signature space. |
relative |
(optional) whether to calculate relative changes in embeddings. |
weighted |
(optional) whether to weight causal strength. |
maximize |
(optional) causality metric to maximize: one of "positive", "negative", or "dark". |
threads |
(optional) number of threads to use. |
detrend |
(optional) whether to remove the linear trend. |
nb |
(optional) neighbours list. |
grid.coord |
(optional) whether to detrend using cell center coordinates ( |
A list
xmapcross mapping performance
varnamename of target variable
methodmethod of cross mapping
maximizemaximized causality metric
Stavroglou, S.K., Pantelous, A.A., Stanley, H.E., Zuev, K.M., 2020. Unveiling causal interactions in complex systems. Proceedings of the National Academy of Sciences 117, 7599–7605.
columbus = sf::read_sf(system.file("case/columbus.gpkg",package="spEDM"))
pc(columbus,"hoval","crime",E = 5:10,maximize = "negative")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.