1- skip_if_not_installed(" marginaleffects" , minimum_version = " 0.25.0 " )
1+ skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.22 " )
22skip_if_not_installed(" rstanarm" )
33
44test_that(" marginaleffects()" , {
@@ -48,12 +48,12 @@ test_that("marginaleffects()", {
4848 model <- mgcv :: gam(Sepal.Width ~ s(Petal.Length , by = Species ), data = iris )
4949 mfx <- marginaleffects :: avg_slopes(model , variables = " Petal.Length" )
5050 out <- model_parameters(mfx )
51- expect_identical(dim(out ), c(1L , 11L ))
51+ expect_identical(dim(out ), c(1L , 10L ))
5252 expect_named(
5353 out ,
5454 c(
5555 " Parameter" , " Comparison" , " Coefficient" , " SE" , " Statistic" ,
56- " p" , " S" , " CI" , " CI_low" , " CI_high" , " Predicted "
56+ " p" , " S" , " CI" , " CI_low" , " CI_high"
5757 )
5858 )
5959 mfx <- marginaleffects :: avg_slopes(model , variables = " Petal.Length" , by = " Species" )
@@ -181,7 +181,7 @@ test_that("predictions, bmrs with special response formula", {
181181 skip_if_offline()
182182 skip_if_not_installed(" httr2" )
183183 skip_if_not_installed(" brms" )
184- skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.21 " )
184+ skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.22 " )
185185
186186 m <- insight :: download_model(" brms_ipw_1" )
187187 skip_if(is.null(m ))
@@ -193,14 +193,13 @@ test_that("predictions, bmrs with special response formula", {
193193
194194
195195test_that(" modelbased, tidiers work" , {
196- skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.21 " )
196+ skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.22 " )
197197 skip_if_not_installed(" modelbased" , minimum_version = " 0.12.0.17" )
198198 skip_if(getRversion() < " 4.5.0" )
199199
200200 data(penguins )
201201 m <- lm(bill_len ~ island * sex + bill_dep + species , data = penguins )
202202
203- # # FIXME: Need to wait for https://github.com/vincentarelbundock/marginaleffects/issues/1573
204203 out <- modelbased :: estimate_contrasts(m , " island" , by = " sex" , comparison = ratio ~ pairwise )
205204 expect_named(
206205 out ,
@@ -266,7 +265,7 @@ test_that("predictions, using bayestestR #1063", {
266265 skip_if_offline()
267266 skip_if_not_installed(" httr2" )
268267 skip_if_not_installed(" brms" )
269- skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.21 " )
268+ skip_if_not_installed(" marginaleffects" , minimum_version = " 0.28.0.22 " )
270269
271270 m <- insight :: download_model(" brms_mixed_3" )
272271 skip_if(is.null(m ))
0 commit comments