tests/testthat/test-newsimpact.R

test_that("gjr(1,1) newsimpact",{
    spec <- garch_modelspec(y[1:1800,1], constant = TRUE, model = "cgarch",
                            order = c(1,1), distribution = "norm")
    mod <- estimate(spec)
    expect_no_error(newsimpact(mod))
})

Try the tsgarch package in your browser

Any scripts or data that you put into this service are public.

tsgarch documentation built on Oct. 12, 2024, 1:07 a.m.