tests/testthat/test-dist_simu_test.R

test_that("dist_simu_test - error", {
  X <- iris[,-5]
  icsX <- ICS(X)

  expect_error(dist_simu_test(icsX, S1 = ICS_cov, S2= ICS_cov4,
                          index = 1, m = 500),
                 "'ICS' object must has been computed with `center` = TRUE.")

})

Try the ICSOutlier package in your browser

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

ICSOutlier documentation built on May 29, 2024, 2:08 a.m.