| select_ar_lag_sic | R Documentation |
Selects the lag order for an autoregressive model of the horizon-h
target y_{t,h} by minimising the Schwarz Information Criterion.
select_ar_lag_sic(y, h, p_max)
y |
Numeric vector of the target variable. |
h |
Positive integer; forecast horizon. For |
p_max |
Maximum lag order to consider. The function evaluates
|
Integer: selected lag order. A value of 0 means the intercept-only model is preferred.
y <- rnorm(200)
select_ar_lag_sic(y, h = 1, p_max = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.