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 June 1, 2024, 11:46 p.m.