tests/testthat/test-glm_CI.R

# 
# out1 <- glm_out <- glm(am ~ mpg, family = binomial, data = mtcars)
# out2 <- glmCI(glm_out)
# saveRDS(list(out1=out1, out2=out2),file = 'tests/testthat/glmCI_out.rda')

test_that("glmCI() with defaults and options set", {
  expected <- readRDS('glmCI_out.rda')
  expect_equal(glmCI(glm(am ~ mpg, family = binomial, data = mtcars)), expected[[2]])

})
abusjahn/wrappedtools documentation built on Oct. 16, 2024, 12:50 p.m.