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
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.