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)
  )

})

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.