Weights for aggregates based MIDAS regressions
Produces weights for aggregates based MIDAS regression
amweights(p, d, m, weight = nealmon, type = c("A", "B", "C"))
p
: parameters for weight functions, see details.d
: number of high frequency lagsm
: the frequencyweight
: the weight functiontype
: type of structure, a string, one of A, B or C.a vector of weights
Suppose a weight function satisfies the following equation:
The following combinations are defined, corresponding to structure types A
, B
and C
respectively:
where is the number of low frequency lags, i.e. . If the latter value is not whole number, the error is produced.
The starting values should be supplied then as follows:
Virmantas Kvedaras, Vaidotas Zemlys