From 1b80fb74dfc8e36491c44ea2c705da057cb7efa1 Mon Sep 17 00:00:00 2001 From: Mollie Brooks Date: Tue, 4 Jun 2024 11:58:05 +0200 Subject: [PATCH] ranef in dispformula also There is another part to `ranef` because we added random effects to the dispformula here, https://github.com/glmmTMB/glmmTMB/pull/997 Signed-off-by: Mollie Brooks --- tests/testthat/test-mtscr_model.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-mtscr_model.R b/tests/testthat/test-mtscr_model.R index 98d443a..1a48eb0 100644 --- a/tests/testthat/test-mtscr_model.R +++ b/tests/testthat/test-mtscr_model.R @@ -9,7 +9,7 @@ test_that("mtscr_model() works as expected", { # Test that the function returns the expected number of fixed and random effects expect_equal(length(glmmTMB::fixef(model)), 3) - expect_equal(length(glmmTMB::ranef(model)), 2) + expect_equal(length(glmmTMB::ranef(model)), 3) }) # Test that `prepared` argument works as expected