Method for filtering the GO-GARCH model.
gogarchfilter(fit, data, out.sample = 0, n.old = NULL, cluster = NULL, ...)
A multivariate data object. Can be a matrix or data.frame or timeSeries.
A positive integer indicating the number of periods before the last to keep for out of sample forecasting.
For comparison with goGARCHfit models using the out.sample argument, this is the length of the original dataset.
A cluster object created by calling makeCluster
from
the parallel package. If it is not NULL, then this will be used for parallel
estimation (remember to stop the cluster on completion).
.
A '>goGARCHfilter
object containing details of the GO-GARCH
filter.
# NOT RUN {
data(dji30ret)
spec = gogarchspec()
fit = gogarchfit(spec = spec, data = dji30ret[,1:4], gfun = "tanh")
filter = gogarchfilter(fit, data = dji30ret[,1:4])
# }
Run the code above in your browser using DataLab