midas.ardl | R Documentation |
Fits MIDAS regression model with single high-frequency covariate. Options include linear-in-parameters polynomials (e.g. Legendre) or non-linear polynomials (e.g. exponential Almon). Nonlinear polynomial optimization routines are equipped with analytical gradients, which allows fast and accurate optimization.
midas.ardl(y, x, z = NULL, loss_choice = c("mse","logit"), poly_choice = c("legendre","expalmon","beta"), poly_spec = 0, legendre_degree = 3, nbtrials = 500)
y |
response variable. Continuous for |
x |
high-frequency covariate lags. |
z |
other lower-frequency covariate(s) or AR lags (both can be supplied in an appended matrix). Either must be supplied. |
loss_choice |
which loss function to fit: |
poly_choice |
which MIDAS lag polynomial function to use: |
poly_spec |
which Beta density function specification to apply (applicable only for |
legendre_degree |
the degree of legendre polynomials (applicable only for |
nbtrials |
number of initial values tried in multistart optimization. Default is set to |
poly_choice
): beta
: Beta polynomial expalmon
: exponential Almon polynomial legendre
: Legendre polynomials. midas.ardl object.
Jonas Striaukas
set.seed(1) x = matrix(rnorm(100 * 20), 100, 20) z = rnorm(100) y = rnorm(100) midas.ardl(y = y, x = x, z = z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.