| sc.test | R Documentation |
spatial causality test
## S4 method for signature 'sf'
sc.test(
data,
cause,
effect,
k,
block = 3,
boot = 399,
seed = 42L,
base = 2,
lib = NULL,
pred = NULL,
threads = detectThreads(),
detrend = TRUE,
normalize = FALSE,
progressbar = FALSE,
nb = NULL
)
## S4 method for signature 'SpatRaster'
sc.test(
data,
cause,
effect,
k,
block = 3,
boot = 399,
seed = 42L,
base = 2,
lib = NULL,
pred = NULL,
threads = detectThreads(),
detrend = TRUE,
normalize = FALSE,
progressbar = FALSE,
grid.coord = TRUE,
embed.direction = 0
)
data |
observation data. |
cause |
name of causal variable. |
effect |
name of effect variable. |
k |
(optional) number of nearest neighbors used in symbolization. |
block |
(optional) number of blocks used in spatial block bootstrap. |
boot |
(optional) number of bootstraps to perform. |
seed |
(optional) random seed. |
base |
(optional) logarithm base. |
lib |
(optional) libraries indices (input requirement same as |
pred |
(optional) predictions indices (input requirement same as |
threads |
(optional) number of threads to use. |
detrend |
(optional) whether to remove the linear trend. |
normalize |
(optional) whether to normalize the result. |
progressbar |
(optional) whether to show the progress bar. |
nb |
(optional) neighbours list. |
grid.coord |
(optional) whether to detrend using cell center coordinates ( |
embed.direction |
(optional) direction selector for embeddings ( |
A list
scstatistic for spatial causality
varnamenames of causal and effect variables
Herrera, M., Mur, J., Ruiz, M., 2016. Detecting causal relationships between spatial processes. Papers in Regional Science 95, 577–595.
columbus = sf::read_sf(system.file("case/columbus.gpkg",package="spEDM"))
spEDM::sc.test(columbus,"hoval","crime",k = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.