tests/longtests/test-hresiduals.R

test_that("hresiduals", {
    hr <- hresiduals(mod_dynamic_benchmark, h = 3, transformed = TRUE, index_start = 0)
    rr <- residuals(mod_dynamic_benchmark, transformed = TRUE)
    z1 <- as.numeric(hr$`1`)
    z2 <- as.numeric(rr)
    expect_equal(z1, z2, tolerance = 1e-8)
})

Try the tsissm package in your browser

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

tsissm documentation built on Aug. 8, 2025, 6:08 p.m.