ccm uses time delay embedding on one time series to generate an
attractor reconstruction, and then applies the simplex projection algorithm
to estimate concurrent values of another time series. This method is
typically applied, varying the library sizes, to determine if one time series
contains the necessary dynamic information to recover the influence of
another, causal variable.ccm(block, lib = c(1, NROW(block)), pred = lib, norm_type = c("L2 norm",
"L1 norm", "LP norm"), P = 0.5, E = 1, tau = 1, tp = 0,
num_neighbors = "e+1", lib_sizes = seq(10, 100, by = 10),
random_libs = TRUE, num_samples = 100, replace = TRUE, lib_column = 1,
target_column = 2, first_column_time = FALSE, RNGseed = NULL,
exclusion_radius = NULL, epsilon = NULL, silent = FALSE)norm_type "L2 norm" (default) uses the typical Euclidean distance: $$distance(a,b) := \sqrt{\sum_i{(a_i - b_i)^2}}$$ norm_type "L1 norm" uses the Manhattan distance: $$distance(a,b) := \sum_i{|a_i - b_i|}$$ norm type "P norm" uses the LP norm, generalizing the L1 and L2 norm to use $p$ as the exponent: $$distance(a,b) := \sum_i{(a_i - b_i)^p}^{1/p}$$
data("sardine_anchovy_sst")
anchovy_xmap_sst <- ccm(sardine_anchovy_sst, E = 3,
lib_column = "anchovy", target_column = "np_sst",
lib_sizes = seq(10, 80, by = 10), num_samples = 100)Run the code above in your browser using DataLab