tests/testthat/test-indchisq.R

test_that("Independence test", {
  v <- c(80,60,150,50,40,20); X<- matrix(v,ncol=2,byrow = TRUE)
  expect_equal(indchisq(X), indchisq(X,conf.level = 0.95))
})

Try the Mychisq package in your browser

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

Mychisq documentation built on June 22, 2026, 9:08 a.m.