tests/testthat/test_equivtest.R

context("equivtest - class of object")

test_that("cord object", {

  expect_error(
    equivtest(fit1.glm, effect_mat, term_cont)
  )

})

context("equivtest - check input args")

test_that("coeffs exist", {

  expect_error(
    equivtest(fit1.cord, NULL)
  )

})

test_that("both term and object0 are specified", {

  expect_error(
    equivtest(fit1.cord, effect_mat, term_cont, fit0.cord)
  )

})

Try the ecopower package in your browser

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

ecopower documentation built on Aug. 24, 2023, 5:09 p.m.