compute_ccm: Run CCM on each pair of time series

Description Usage Arguments Value

View source: R/calculations-ccm.R

Description

Runs pairwise CCM based on the simplex_output - using the best embedding dimension from the simplex results, and computed for both the real data and the surrogate data. The calculations run using furrr::future_pmap(). Thus, parallelization should be set by the user, if desired, using future::plan(), prior to running.

Usage

1
2
3
compute_ccm(simplex_results, lib_sizes = seq(10, 100, by = 10),
  random_libs = TRUE, num_samples = 100, replace = TRUE,
  RNGseed = 42, silent = TRUE)

Arguments

simplex_results

the output of compute_simplex()

lib_sizes

the vector of library sizes to try

random_libs

indicates whether to use randomly sampled libs

num_samples

is the number of random samples at each lib size (this parameter is ignored if random_libs is FALSE)

replace

indicates whether to sample vectors with replacement

RNGseed

will set a seed for the random number generator, enabling reproducible runs of ccm with randomly generated libraries

silent

prevents warning messages from being printed to the R console

Value

A tibble with columns for the variables that we use in CCM, the data type (whether it's the "actual" time series or "surrogate"), the library size, and the results from CCM


ha0ye/portalDS documentation built on March 28, 2020, 1:21 p.m.