skip_on_cran()
skip_if_not_installed("modeltests")
library(modeltests)
skip_if_not_installed("geepack")
suppressPackageStartupMessages(library(geepack))
dat <- data.frame(state.region, state.x77)
fit <- geeglm(
Income ~ Frost + Murder,
id = state.region,
data = dat,
corstr = "exchangeable"
)
test_that("tidy.geeglm", {
check_arguments(tidy.geeglm)
td <- tidy(fit, conf.int = TRUE)
expect_snapshot({
td2 <- tidy(fit, conf.int = FALSE, exponentiate = TRUE)
})
check_tidy_output(td)
check_tidy_output(td2)
})
test_that("glance.geeglm", {
gl <- glance(fit)
check_glance_outputs(gl)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.