uGARCHfit-class | R Documentation |
Class for the univariate GARCH fit.
A virtual Class: No objects may be created from it.
Class GARCHfit
, directly.
Class rGARCH
, by class GARCHfit
, distance 2.
fit
:Object of class "vector"
Holds data on the fitted model.
model
:Object of class "vector"
The model specification common to all objects.
signature(object = "uGARCHfit")
:
Extracts the coefficients.
signature(object = "uGARCHfit")
:
Similar to the stats S3 method confint
, extracts coefficient
confidence intervals taking additional optional arguments parm
and
level
, as well as robust
(default: FALSE) indicating whether
to use the robust covariance matrix for the calculations.
signature(object = "uGARCHfit")
:
Extracts the covariance matrix of the parameters. Additional logical option of
‘robust’ indicates whether to extract the robust based covariance matrix.
signature(object = "uGARCHfit")
:
Calculates and returns various information criteria.
signature(object = "uGARCHfit")
:
Calculates and returns the Hansen-Nyblom stability test (1990).
signature(object = "uGARCHfit", 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.
signature(object = "uGARCHfit")
:
Calculates and returns the news impact curve.
signature(object = "uGARCHfit")
:
Calculates and returns the sign bias test of Engle and Ng (1993).
signature(object = "uGARCHfit")
:
Extracts the likelihood.
signature(object = "uGARCHfit")
:
Extracts the conditional sigma values.
signature(object = "uGARCHfit")
:
Extracts the fitted values.
signature(object = "uGARCHfit")
:
Extracts the residuals. Optional logical argument standardize
(default is FALSE) allows to extract the standardized residuals.
signature(object = "uGARCHfit")
:
Extracts and returns the GARCH specification from a fit object.
signature(object = "uGARCHfit", pars = "missing",
distribution="missing", model = "missing", vexdata = "missing")
:
Calculates and returns the long run unconditional variance of the GARCH fit
given a uGARCHfit
object.
signature(object = "missing", pars = "numeric",
distribution = "character", model = "character", submodel = "ANY",
vexdata = "ANY")
:
Calculates and returns the long run unconditional variance of the GARCH fit
given a named parameter vector as returned by the fit, a distribution model
name and a GARCH model name with a submodel included if the model is of the
nested type such as fGARCH and any external regressor data.
signature(object = "uGARCHfit")
:
Calculates and returns the unconditional mean of the conditional mean equation
(constant, ARMAX, arch-in-mean).
signature(object = "uGARCHfit", pars = "missing",
distribution = "missing", model = "missing")
:
Calculates and returns the persistence of the GARCH fit model given a
uGARCHfit
object.
signature(object = "missing", pars = "numeric",
distribution = "character", model = "character")
:
Calculates and returns the persistence of the GARCH fit model given a named
parameter vector as returned by the fit, a distribution model name and a
GARCH model name with a submodel included if the model is of the nested type
such as fGARCH.
signature(object = "uGARCHfit", pars = "missing",
distribution = "missing", model = "missing")
:
Calculates and returns the halflife of the GARCH fit variance given a
uGARCHfit
object.
signature(object = "missing", pars = "numeric",
distribution = "character", model = "character")
:
Calculates and returns the halflife of the GARCH fit variance given a named
parameter vector as returned by the fit, a distribution model name and a
GARCH model name with a submodel included if the model is of the nested
type such as fGARCH.
signature(object = "uGARCHfit")
:
Returns the solver convergence code for the fitted object (zero denotes
convergence).
signature(x = "uGARCHfit")
:
Calculates and returns, given a vector of probabilities (additional argument
“probs”), the conditional quantiles of the fitted object (x).
signature(object = "uGARCHfit")
:
Calculates and returns the conditional probability integral transform given the
data and estimated density.
signature(object = "uGARCHfit")
:
Zeros parameters (fixing to zero in rugarch is equivalent to eliminating them
in estimation) with p-values (optional argument “pvalue”) greater
than 0.1 (default), and re-estimates the model. Additional arguments are passed
to ugarchfit
.An additional option “use.robust” (default TRUE)
asks whether to use the robust calculated p-values.
signature(x = "uGARCHfit", y = "missing")
:
Fit plots.
signature(object = "uGARCHfit")
:
Fit summary.
Methods for coef, likelihood, fitted, sigma and residuals provide extractor
functions for those values.
Method for show gives detailed summary of GARCH fit with various tests.
Method for plot provides for interactive choice of plots, option of choosing
a particular plot (option “which” equal to a valid plot number) or a
grand plot including all subplots on one page (option “which”=“all”).
The infocriteria method calculates and returns the information criteria
(AIC, BIC etc) of the GARCH fit.
The nyblom method calculates and returns the Hansen-Nyblom joint and individual
coefficient stability test statistic and critical values.
The gof methods calculates and returns the adjusted goodness of fit statistic
and p-values for the fitted distribution. The groups parameter is a numeric
vector of grouped bin sizes for the test. See the references in the package
introduction for the original paper by Vlaar and Palm explaining the test.
The signbias methods calculates and returns the sign bias test of Engle and Ng
(see the references in the package introduction).
Methods for calculating and extracting persistence, unconditional variance and
half-life of the GARCH shocks exist and take either the GARCH fit object as a
single value otherwise you may provide a named parameter vector (see
uGARCHspec
section for parameter names of the various GARCH
models), a distribution name and the GARCH model (with submodel argument for the
fGARCH model).
Unconditional mean and variance of the model may be extracted by means of the
uncmean and uncvariance methods. The uncvariance may take either a fit object or
a named parameter list, distribution and GARCH model name. The uncmean will only
take a fit object due to the complexity of the calculation requiring much more
information than the uncoditional variance.
The news impact method returns a list with the calculated values (zx, zy) and
the expression (xexpr, yexpr) which can be used to illustrate the plot.
Alexios Ghalanos
Classes uGARCHforecast
, uGARCHsim
and
uGARCHspec
.
## Not run:
# Basic GARCH(1,1) Spec
data(dmbp)
spec = ugarchspec()
fit = ugarchfit(data = dmbp[,1], spec = spec)
fit
# object fit:
slotNames(fit)
# sublist fit@fit
names(fit@fit)
coef(fit)
infocriteria(fit)
likelihood(fit)
nyblom(fit)
signbias(fit)
head(sigma(fit))
head(residuals(fit))
head(fitted(fit))
gof(fit,c(20,30,40,50))
uncmean(fit)
uncvariance(fit)
#plot(fit,which="all")
# news impact example
spec = ugarchspec(variance.model=list(model="apARCH"))
fit = ugarchfit(data = dmbp[,1], spec = spec)
# note that newsimpact does not require the residuals (z) as it
# will discover the relevant range to plot against by using the min/max
# of the fitted residuals.
ni=newsimpact(z = NULL, fit)
#plot(ni$zx, ni$zy, ylab=ni$yexpr, xlab=ni$xexpr, type="l", main = "News Impact Curve")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.