| estimate_ardl_multi | R Documentation |
Fits an autoregressive distributed lag model for the horizon-h
target, with p1 lags of y and p2 lags of additional
regressors z (e.g., extracted factors).
estimate_ardl_multi(y, z, h, p)
y |
Numeric vector of the target variable. |
z |
Numeric matrix of additional regressors (e.g., factor estimates). |
h |
Positive integer; forecast horizon. |
p |
Integer vector of length 2: |
Coefficient vector (intercept, AR lags, then z lags).
y <- rnorm(200)
z <- matrix(rnorm(200 * 3), 200, 3)
coefs <- estimate_ardl_multi(y, z, h = 1, p = c(1, 1))
coefs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.