tests/testthat/test_powersim.R

context("powersim - class of object")

test_that("cord object", {

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

})

context("powersim - check input args")

test_that("coeffs exist", {

  expect_error(
    powersim(fit1.cord, NULL, term_cont)
  )

})
BenMaslen/ecopower documentation built on Aug. 26, 2023, 8:10 a.m.