tests/testthat/test-micss.R

test_that(
  "micss with data example. Returns number of breaks = 2 ",
  {
    expected <- 2
    data(logReturnsRandDollar)
    e <- whitening(data$rand.dollar)$e # whitening
    actual <- micss(e)$icss$nb
    expect_equal(actual,expected)
  }
)

Try the micss package in your browser

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

micss documentation built on Sept. 11, 2024, 6:46 p.m.