update_weights {midasr} | R Documentation |
Updates weights in MIDAS regression formula
Description
Updates weights in a expression with MIDAS term
Usage
update_weights(expr, tb)
Arguments
expr |
expression with MIDAS term |
tb |
a named list with redefined weights |
Details
For a MIDAS term fmls(x, 6, 1, nealmon)
change weight nealmon
to another weight.
Value
an expression with changed weights
Author(s)
Vaidotas Zemlys
Examples
update_weights(y~trend+mls(x,0:7,4,nealmon)+mls(z,0:16,12,nealmon),list(x = "nbeta", z = ""))
[Package midasr version 0.8 Index]