midas.ardl {midasml} | R Documentation |
MIDAS regression
Description
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.
Usage
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)
Arguments
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 |
Details
Several polynomial functional forms are available (poly_choice
): -
beta
: Beta polynomial -
expalmon
: exponential Almon polynomial -
legendre
: Legendre polynomials. The ARDL-MIDAS model is:
yt = μ + Σp ρp yt-p + β Σj ωj(θ)xt-1
where μ, β, θ and ρp are model parameters, p is the number of low-frequency lags and ω is the weight function.
Value
midas.ardl object.
Author(s)
Jonas Striaukas
Examples
set.seed(1)
x = matrix(rnorm(100 * 20), 100, 20)
z = rnorm(100)
y = rnorm(100)
midas.ardl(y = y, x = x, z = z)