tests/testthat/test-observed_vs_theoretical.R

test_that("observed_vs_theoretical() does not produce an error", {
  mod <- glm(
    as.factor(Survived) ~ Class + Sex,
    data = titanic,
    family = binomial()
  )
  expect_no_error(
    mod |> observed_vs_theoretical()
  )
})

Try the guideR package in your browser

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

guideR documentation built on June 8, 2025, noon