# LM ----
patrick::with_parameters_test_that("eglm fitting is the same as glm:", {
m1 <- lm(model, data = mtcars, x = TRUE)
m2 <- elm(model, data = mtcars, x = TRUE, reduce = reduce)
expect_model_equal(m2, m1)
},
.cases = elm_cases()
)
# GLM ----
patrick::with_parameters_test_that("eglm fitting is the same as glm:", {
m1 <- glm(model, family = family, data = mtcars, x = TRUE)
m2 <- eglm(model, family = family, data = mtcars, x = TRUE, reduce = reduce)
expect_model_equal(m2, m1)
},
.cases = eglm_cases()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.