create_subset_lags: Create Subset Lags

create_subset_lagsR Documentation

Create Subset Lags

Description

Creates all combinations, though not in quite the logical order one might expect. Could resolve by reording the code maybe, but it works (Andy manually checked a detailed example, essentially the one given).

Usage

create_subset_lags(lags, response_name = NULL)

Arguments

lags

[list()] of a named vector of lags for each explanatory variable.

response

character string; if not NULL then any subset that does not include 'response' with a lag of 0 is excluded; this if for running 'pbsEDM' (which requires response variable in the state space) in 'multivariate_simplex()'.

Value

[list()] with one lag [list()] for each subset state space reconstruction

Examples

s <- create_subset_lags(list(a = c(0, 1, 2), b = c(0, 1)))
s_with_response <- create_subset_lags(list(a = c(0, 1, 2), b = c(0, 1)), response = "b")

luke-a-rogers/pbsedm documentation built on June 3, 2024, 5:20 a.m.