fit_mfgarch: This function estimates a multiplicative mixed-frequency...

Description Usage Arguments Value Examples

View source: R/fit_mfgarch.R

Description

This function estimates a multiplicative mixed-frequency GARCH model. For the sake of numerical stability, it is best to multiply log returns by 100.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
fit_mfgarch(
  data,
  y,
  x = NULL,
  K = NULL,
  low.freq = "date",
  var.ratio.freq = NULL,
  gamma = TRUE,
  weighting = "beta.restricted",
  x.two = NULL,
  K.two = NULL,
  low.freq.two = NULL,
  weighting.two = NULL,
  multi.start = FALSE,
  control = list(par.start = NULL)
)

Arguments

data

data frame containing a column named date of type 'Date'.

y

name of high frequency dependent variable in df.

x

covariate employed in mfGARCH.

K

an integer specifying lag length K in the long-term component.

low.freq

a string of the low frequency variable in the df.

var.ratio.freq

specify a frequency column on which the variance ratio should be calculated.

gamma

if TRUE, an asymmetric GJR-GARCH is used as the short-term component. If FALSE, a simple GARCH(1,1) is employed.

weighting

specifies the weighting scheme employed in the long-term component. Options are "beta.restricted" (default) or "beta.unrestricted"

x.two

optional second covariate

K.two

lag lgenth of optional second covariate

low.freq.two

low frequency of optional second covariate

weighting.two

specifies the weighting scheme employed in the optional second long-term component. Currently, the only option is "beta.restricted"

multi.start

if TRUE, optimization is carried out with multiple starting values

control

a list

Value

A list of class mfGARCH with letters and numbers.

Examples

1
2
3
4
5
6
## Not run: 
fit_mfgarch(data = df_financial, y = "return", x = "nfci", low.freq = "week", K = 52)
fit_mfgarch(data = df_mfgarch, y = "return", x = "nfci", low.freq = "year_week", K = 52,
x.two = "dindpro", K.two = 12, low.freq.two = "year_month", weighting.two = "beta.restricted")

## End(Not run)

mfGARCH documentation built on June 17, 2021, 5:15 p.m.

Related to fit_mfgarch in mfGARCH...