tests/testthat/test-blomqvist.R

test_that("Example 10.9", {
  tmp <- blomqvist(ch10$q1, ch10$q2, alternative = "greater")
  expect_equal(tmp$stat, 0.66666667)
  expect_equal(tmp$pval.exact, 0.04004329)
})

test_that("Exercise 10.6", {
  expect_equal(blomqvist(ch10$ERA, ch10$ESMS)$pval.exact, 0.007936508)
})

test_that("Exercise 10.7", {
  expect_equal(blomqvist(ch10$ERA, ch10$SSS)$pval.exact, 1)
})

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.