Skip to contents

Estimates delay and embedding dimension (m) for each variable time series using functions from nonlinearTseries.

The function is compatible with outputs from resample_timeseries() and automatically accommodates participant-level subseries (Series_ID) when available.

Usage

estimate_embedding_parameters(
  data,
  max_delay = 10,
  max_dim = 10,
  ami_selection_method = "first.e.decay",
  fnn_threshold = 0.05,
  plot = TRUE
)

Arguments

data

A data frame, or an object returned by resample_timeseries(). All numeric columns other than ID, Series_ID, and time are treated as variables to analyse.

max_delay

[integer(1): 10]
Maximum delay considered for AMI-based delay estimation.

max_dim

[integer(1): 10]
Maximum embedding dimension considered for false-nearest-neighbours estimation.

ami_selection_method

[character(1): "first.e.decay"]
Selection rule passed to nonlinearTseries::timeLag().

fnn_threshold

[numeric(1): 0.05]
False-neighbour threshold passed to nonlinearTseries::estimateEmbeddingDim().

plot

[logical(1): TRUE]
If TRUE, stores a ggplot summary of per-series delay and m estimates in $plot.

Value

An object of class experdyn_embedding — a named list with:

ElementDescription
recommended_delayOverall recommended delay (median across estimates).
recommended_dimOverall recommended embedding dimension (max across variable medians).
variable_summaryPer-variable summary table (central tendency + variability).
series_estimatesPer-series/per-variable raw estimates.
overall_variabilityOverall variability metrics for delay and m.
n_variablesNumber of analysed variables.
n_seriesNumber of analysed series/subseries.
plotA ggplot object (or NULL if plot = FALSE).