tests/testthat/test-bootstrap.R

context("Bootstrapping")

test_that("Insufficient nboot triggers proper error message", {
  msg <- "Insufficient samples. Increase nboo."
  expect_error(
    Kendalls_tau_b_rxc_bca(table_7.8, nboot = 10), msg
  )
  expect_error(
    Pearson_correlation_coefficient_rxc_bca(table_7.8, nboot = 10), msg
  )
  expect_error(
    Spearman_correlation_coefficient_rxc_bca(table_7.8, nboot = 10), msg
  )
})
ocbe-uio/contingencytables documentation built on Aug. 30, 2024, 7:16 a.m.