Skip to content

Commit

Permalink
Update test-marginaleffects.R
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed May 16, 2024
1 parent 1df8a65 commit 820c738
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-marginaleffects.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test_that("marginaleffects", {

x <- marginaleffects::slopes(m,
variables = "Petal.Length",
newdata = insight::get_datagrid(m, at = "Species")
newdata = insight::get_datagrid(m, by = "Species")
)
# Equivalent in emmeans
x2 <- emmeans::emtrends(m, var = "Petal.Length", specs = ~ Species + Petal.Length)
Expand Down Expand Up @@ -35,8 +35,8 @@ test_that("marginaleffects", {
parameters::model_parameters(x),
c(
"rowid", "Parameter", "Coefficient", "SE", "Statistic", "p",
"S", "CI", "CI_low", "CI_high", "predicted_lo", "predicted_hi",
"Predicted", "Species", "Petal.Length", "Sepal.Width"
"S", "CI", "CI_low", "CI_high", "Predicted", "Species",
"Petal.Length", "Sepal.Width"
)
)
})

0 comments on commit 820c738

Please sign in to comment.