uGARCHfilter-class: class: Univariate GARCH Filter Class

Description Extends Methods Note Author(s) Examples

Description

Class for the univariate GARCH filter.

Extends

Class "GARCHfilter", directly. Class "rGARCH", by class "GARCHfilter", distance 2.

Methods

as.data.frame

signature(x = "uGARCHfilter"): extracts the position (dates), data, fitted values, residuals and conditional sigma.

fitted

signature(object = "uGARCHfilter"): extracts the fitted values.

residuals

signature(object = "uGARCHfilter"): extracts the residuals.

sigma

signature(object = "uGARCHfilter"): extracts the conditional sigma values.

coef

signature(object = "uGARCHfilter"): extracts the coefficients.

infocriteria

signature(object = "uGARCHfilter"): calculates and returns various information criteria.

newsimpact

signature(object = "uGARCHfilter"): calculates and returns the news impact curve.

likelihood

signature(object = "uGARCHfilter"): extracts the likelihood.

signbias

signature(object = "uGARCHfilter"): calculates and returns the sign bias test of Engle and Ng (1993).

gof

signature(object = "uGARCHfilter", groups = "numeric"): calculates and returns the adjusted goodness of fit statistic and p-values for the fitted distribution based on the Vlaar and Palm paper (1993). Groups is a numeric vector of bin sizes.

persistence

signature(object = "uGARCHfilter", pars = "missing", distribution = "missing", model = "missing", submodel = "missing"): calculates and returns the persistence of the garch filter model.

halflife

signature(object = "uGARCHfilter", pars = "missing", distribution = "missing", model = "missing"): calculates and returns the halflife of the garch fit variance given a uGARCHfilter object.

uncmean

signature(object = "uGARCHfilter"): calculates and returns the unconditional mean of the conditional mean equation (constant, ARMAX, garchinmean).

uncvariance

signature(object = "uGARCHfilter", pars = "missing", distribution = "missing", model = "missing", submodel = "missing"): calculates and returns the long run unconditional variance of the garch filter given a uGARCHfilter object.

plot

signature(x = "uGARCHfilter", y = "missing"): filter plots

show

signature(object = "uGARCHfilter"): filter summary.

Note

The uGARCHfilter class contains almost all the methods available with the uGARCHfit with the exception of those requiring the scores of the likelihood (i.e the optimization process) such as the nyblom test.

Author(s)

Alexios Ghalanos

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
data(dji30ret)
ctrl = list(rho = 1, delta = 1e-8, outer.iter = 100, inner.iter = 650, tol = 1e-6)
spec = ugarchspec(variance.model = list(model = "sGARCH", garchOrder = c(1,1)), 
		mean.model = list(armaOrder = c(1,1), include.mean = TRUE), 
		distribution.model = "std")
sgarch.fit = ugarchfit(data = dji30ret[,"AA",drop=FALSE], spec = spec, 
		solver = "solnp", solver.control = ctrl)
		
spec = ugarchspec(variance.model = list(model = "sGARCH", garchOrder = c(1,1)), 
		mean.model = list(armaOrder = c(1,1), include.mean = TRUE), 
		distribution.model = "std", fixed.pars = as.list(coef(sgarch.fit)))
sgarch.filter = ugarchfilter(data = dji30ret[,"AA",drop=FALSE], spec = spec)

c(likelihood(sgarch.filter), likelihood(sgarch.fit))
c(uncmean(sgarch.filter), uncmean(sgarch.fit))
c(uncvariance(sgarch.filter), uncvariance(sgarch.fit))

## End(Not run)

rgarch documentation built on May 2, 2019, 5:22 p.m.