tests/testthat/test-report.ivreg.R

skip_if_not_installed("ivreg")

test_that("report-survreg", {
  data("CigaretteDemand", package = "ivreg")

  # model
  set.seed(123)
  ivr <-
    ivreg::ivreg(log(packs) ~ log(rprice) + log(rincome) | salestax + log(rincome),
      data = ivreg::CigaretteDemand
    )

  expect_snapshot(variant = "windows", report(ivr))
})

Try the report package in your browser

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

report documentation built on Sept. 11, 2024, 8:47 p.m.