tests/testthat/test-gofchisq.R

test_that("Goodness of fit test", {
  x=c(12,9,10,7,12); prob=c(1/5,1/5,1/5,1/5,1/5)
  expect_equal(gofchisq(x=x,p=prob),gofchisq(x,prob))
})

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.