update_weights: Updates weights in MIDAS regression formula

View source: R/midasreg.R

update_weightsR 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 = ""))


mpiktas/midasr documentation built on Aug. 24, 2022, 2:32 p.m.