update_weights: Updates weights in MIDAS regression formula

Description Usage Arguments Details Value Author(s) Examples

View source: R/midasreg.R

Description

Updates weights in a expression with MIDAS term

Usage

1
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

1
update_weights(y~trend+mls(x,0:7,4,nealmon)+mls(z,0:16,12,nealmon),list(x = "nbeta", z = ""))

midasr documentation built on Feb. 23, 2021, 5:11 p.m.