tests/testthat/test-pkg-ivreg.R

test_that("Issue #530 from the `modelsummary` repo", {
  skip_if_not_installed("ivreg")
  # for ivreg diagnostics
  data(mtcars)
  iv_model <- suppressMessages(ivreg::ivreg(mpg ~ qsec + cyl + drat | disp | wt, data = mtcars))
  out <- expect_silent(model_performance(iv_model))
  expect_snapshot(out)
})

Try the performance package in your browser

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

performance documentation built on Oct. 19, 2024, 1:07 a.m.