ComeçarComece de graça

Use in production

In a corporate environment, there is often a distinction between the stage of model engineering and the stage to using the model in production. When using the model in production, it may be that the model is not re-estimated at each stage. You then use the model with fixed coefficients but integrating on each prediction day the new data. The function ugarchfilter() is designed to complete this task.

In this exercise you use a model fitted on the January 1989 till December 2007 daily S&P 500 returns to make a prediction of the future volatility in a turbulent period (September 2008) and a stable period (September 2017). The model has already been specified as is available as garchspec in the R console.

Este exercício faz parte do curso

GARCH Models in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Estimate the model
garchfit <- ___(data = sp500ret[___], spec = garchspec)

# Fix the parameters
progarchspec <- garchspec
___(progarchspec) <- as.list(___(garchfit))
Editar e executar o código