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

})

Try the wrappedtools package in your browser

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

wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.