tests/testthat/test-viztest-genz.R

test_that("gen_z returns appropriate values", {
  ests <- viztest_chick_estimates()
  z <- gen_z(coef(ests), vcov(ests))
  expect_length(z, 2)
  expect_named(z, c("ave_z", "all_z"))
  expect_equal(nrow(z$ave_z), 6)
  expect_equal(nrow(z$all_z), 15)
})

Try the VizTest package in your browser

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

VizTest documentation built on Dec. 4, 2025, 9:07 a.m.