Skip to content

Commit 85630d1

Browse files
committed
updates for glmmTMB changes
1 parent ad16942 commit 85630d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/testthat/test-get_variance.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ test_that("fixed effects variance for rank-deficient models, #765", {
364364
mod_TMB <- glmmTMB::glmmTMB(
365365
z ~ x1 + x2 + x3 + x4 + (1 | re),
366366
data = dd,
367+
start = list(theta = 3),
367368
control = glmmTMB::glmmTMBControl(rank_check = "adjust")
368369
)
369370
})

tests/testthat/test-glmmTMB.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ test_that("get_data", {
617617
expect_null(get_data(m4, component = "disp", effects = "random", verbose = FALSE))
618618
})
619619

620-
test_that("find_paramaters", {
620+
test_that("find_parameters", {
621621
expect_identical(
622622
find_parameters(m4),
623623
list(
@@ -685,7 +685,7 @@ test_that("find_paramaters", {
685685
})
686686

687687

688-
test_that("get_paramaters", {
688+
test_that("get_parameters", {
689689
expect_identical(nrow(get_parameters(m4)), 6L)
690690
expect_identical(
691691
colnames(get_parameters(m4)),
@@ -880,7 +880,8 @@ d2$sd <- "five"
880880
dat <- rbind(d1, d2)
881881
m0 <- glmmTMB::glmmTMB(x ~ sd + (1 | t), dispformula = ~sd, data = dat)
882882

883-
test_that("get_paramaters", {
883+
884+
test_that("get_parameters", {
884885
expect_identical(nrow(get_parameters(m0)), 4L)
885886
expect_identical(
886887
colnames(get_parameters(m0)),
@@ -897,7 +898,7 @@ test_that("get_paramaters", {
897898
)
898899
expect_equal(
899900
get_parameters(m0)$Estimate,
900-
c(200.03431, -99.71491, 3.20287, 1.38648),
901+
c(200.03431, -99.71491, 1.6014, 0.69323),
901902
tolerance = 1e-3
902903
)
903904
expect_identical(

0 commit comments

Comments
 (0)