pbsEDM_optimal_E: Do the 'pbsEDM()' calculation for vector of 'E' values and...

View source: R/pbsEDM_optimal_E.R

pbsEDM_optimal_ER Documentation

Do the 'pbsEDM()' calculation for vector of 'E' values and then return the optimal 'E'.

Description

Only works for one variable, non-differenced $N_t$, for now, as I haven't thought how to incorporate the lags variable properly yet. Calls 'pbsEDM_Evec' and then just returns the results for the optimal 'E', based on highest 'rho'.

Usage

pbsEDM_optimal_E(N_t, lags_to_test = 1:10, ...)

Arguments

N_t

[vector] Vector of non-differenced values $N_t$, with time assumed to be '1:length(N_t)'.

lags_to_test

vec Vector of lags to try (gets passed onto 'E_vec' in 'pbsEDM_Evec'; see Issue 28).

...

Further options to pass to 'pbsEDM_Evec()' and then onto 'pbsEDM()'.

Value

A 'pbsEDM' list corresponding to the optimal 'E', based on 'N_rho'.

Author(s)

Andrew Edwards

Examples


  aa <- pbsEDM_optimal_E(NY_lags_example$N_t)


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