Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

midasr (version 0.2)

amweights: Weights for aggregates based MIDAS regressions

Description

Produces weights for aggregates based MIDAS regression

Usage

amweights(p, d, m, weight = nealmon, type = c("A", "B", "C"))

Arguments

p
parameters for weight functions, see details.
d
number of lags
m
the frequency
weight
the weight function
type
type of structure, a string, one of A, B or C.

Value

  • a vector of weights

Details

Given a weight function $w(\beta,\theta)$ which has a property of being defined as $\beta g(\theta)$ the following combinations are defined, corresponding to structure types A, B and C respectively: (w(β1,θ1),...,w(βk,θk)) (w(β1,θ),...,w(βk,θ)) β(w(1,θ1),...,w(1,θk))

The starting values $p$ should be supplied then as follows: (β1,θ1,...,βk,θk) (β1,...,βk,θ) (β,θ1,...,θk)