Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GARCH Models in R with Dummy variables #11

Open
Alex-Sigma opened this issue Nov 3, 2022 · 0 comments
Open

GARCH Models in R with Dummy variables #11

Alex-Sigma opened this issue Nov 3, 2022 · 0 comments

Comments

@Alex-Sigma
Copy link

Hi everyone

I got the time series Problem.

I want to use multivar. GARCH model with binary predictor, where binary (dummy) variable being calendar feature like January (1 for Yes 0 for no)

Problem: I cannot fit calendar features as dummy variable.
Could someone suggest any useful packages with code example.

I tried to do it with garchmodells package.

Below is my code and error message:

DAX_rugarch_01_month <-
garch_multivariate_reg(
mode = "regression", type = "ugarchspec"
) %>%
set_engine("rugarch", specs= list(
spec1 = list(mean.model = list(armaOrder = c(1,0))),
spec2 = list(mean.model = list(armaOrder = c(1,0))),
spec3 = list(mean.model = list(armaOrder = c(1,0)))
)) %>%
fit(Return~ Date + January, data = DAX_train_January)

Error:
multifit GARCH-->error: speclist length not equal to data length

Somethiny is off with my specs at set_engines? The number of dimensions is 3, so I got spec1, spec2, spec3.

Would appreciate any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant