Updates weights in MIDAS regression formula
Updates weights in a expression with MIDAS term
update_weights(expr, tb)
expr
: expression with MIDAS termtb
: a named list with redefined weightsan expression with changed weights
For a MIDAS term fmls(x, 6, 1, nealmon)
change weight nealmon
to another weight.
update_weights(y~trend+mls(x,0:7,4,nealmon)+mls(z,0:16,12,nealmon),list(x = "nbeta", z = ""))
Vaidotas Zemlys