create_subset_lags | R Documentation |
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).
create_subset_lags(lags, response_name = NULL)
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()'. |
[list()] with one lag [list()] for each subset state space reconstruction
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.