tests/testthat/test-kappa_test.R

test_that(
  "kappa.test with data example. Returns 3.548",
  {
    expected <- 2.047063
    data(logReturnsRandDollar)
    e <- whitening(data$rand.dollar)$e # whitening
    actual <- kappa_test(e)$kappa
    expect_equal(round(actual,5), round(expected,5))
  }
)

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.