goinit {gogarch} | R Documentation |
Constructor function for objects of class "Goinit"
Description
This function can be utilized to create objects of class
Goinit
. These objects are the starting point for estimating
GO-GARCH models.
Usage
goinit(X, garchf = ~garch(1, 1), scale = FALSE)
Arguments
X |
Matrix: the data matrix. |
garchf |
Formula: A formula object that will be used in the GARCH models of the uncorrelated components. |
scale |
Logical, if |
Details
This function computes the variance/covariance matrix of
X
. Next the singular value decomposition is applied and the
projection matrix as well as the diagonal matrix with the square roots
of the eigen values are computed.
Value
An object of class Goinit
.
Author(s)
Bernhard Pfaff
See Also
Examples
## Not run:
library(vars)
data(VDW)
var1 <- VAR(VDW, p = 1, type = "const")
resid <- resid(var1)
goinit(resid, scale = TRUE)
## End(Not run)
[Package gogarch version 0.7-5 Index]