tests/testthat/test-mantel.haenszel.R

test_that("Example 13.4", {
  expect_equal(mantel.haenszel(ch13$drug, ch13$side.effects, ch13$age.group)$pval.asymp.stat,
               0.0051217907)
  expect_equal(mantel.haenszel(ch13$drug, ch13$side.effects, ch13$age.group)$pval.asymp,
               0.94294675)
})

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.