tests/testthat/test-ggcalibration.R

test_that("ggcalibration() works", {
  expect_error(
    glm(response ~ age + marker + grade, trial, family = binomial) %>%
      broom::augment(type.predict = "response") %>%
      ggcalibration(y = response, x = .fitted),
    NA
  )
})
ddsjoberg/bstfun documentation built on July 4, 2023, 10:59 a.m.