tests/testthat/test-kruskal.wallis.vdW.R

test_that("Example 7.2", {
  tmp <- kruskal.wallis.vdW(ch7$age, ch7$positions)
  expect_equal(tmp$pval.exact.stat, 2.33260844)
  expect_equal(tmp$pval.exact, 0.33578921)
  expect_equal(
    kruskal.wallis.vdW(ch7$age, ch7$positions, do.exact = FALSE,
                       do.asymp = TRUE)$pval.asymp.stat, 2.33260844)
  expect_equal(
    kruskal.wallis.vdW(ch7$age, ch7$positions, do.exact = FALSE,
                       do.asymp = TRUE)$pval.asymp, 0.31151611)
})

Try the ANSM5 package in your browser

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

ANSM5 documentation built on Sept. 11, 2024, 6:45 p.m.