Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 23, 2024
1 parent cc0062d commit e47a0fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testthat/test-estimate_predicted.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,9 @@ test_that("estimate_response - VisMatrix", {
skip_if_not_installed("mgcv")

m <- lm(Sepal.Length ~ Petal.Length * Petal.Width, data = iris)
vm <- visualisation_matrix(m, at = c("Petal.Length", "Petal.Width = seq(-3, 3)"))
vm <- visualisation_matrix(m, by = c("Petal.Length", "Petal.Width = seq(-3, 3)"))
estim <- estimate_relation(vm)
expect_equal(dim(estim), c(70, 6))
expect_equal(
colnames(estim),
c("Petal.Length", "Petal.Width", "Predicted", "SE", "CI_low", "CI_high")
expect_identical(dim(estim), c(70L, 6L))
expect_named(estim, c("Petal.Length", "Petal.Width", "Predicted", "SE", "CI_low", "CI_high")
)
})

0 comments on commit e47a0fd

Please sign in to comment.