
Estimate Optimal State-Space Embedding Parameters
Source:R/estimate_embedding_parameters.R
estimate_embedding_parameters.RdEstimates 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 thanID,Series_ID, andtimeare 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 tononlinearTseries::timeLag().- fnn_threshold
[numeric(1): 0.05]
False-neighbour threshold passed tononlinearTseries::estimateEmbeddingDim().- plot
[logical(1): TRUE]
IfTRUE, stores a ggplot summary of per-series delay andmestimates in$plot.
Value
An object of class experdyn_embedding — a named list with:
| Element | Description |
recommended_delay | Overall recommended delay (median across estimates). |
recommended_dim | Overall recommended embedding dimension (max across variable medians). |
variable_summary | Per-variable summary table (central tendency + variability). |
series_estimates | Per-series/per-variable raw estimates. |
overall_variability | Overall variability metrics for delay and m. |
n_variables | Number of analysed variables. |
n_series | Number of analysed series/subseries. |
plot | A ggplot object (or NULL if plot = FALSE). |