File: test-glmmTMB-profile_CI.R

package info (click to toggle)
r-cran-parameters 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,852 kB
  • sloc: sh: 16; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
test_that("glmmTMB profiled and uniroot CI work", {
  skip_on_cran()
  skip_if_not_installed("TMB")
  skip_if_not_installed("glmmTMB")
  skip_if_not_installed("lme4")
  data(sleepstudy, package = "lme4")

  m <- glmmTMB::glmmTMB(Reaction ~ Days + (Days | Subject), data = sleepstudy)
  expect_silent({
    mp1 <- model_parameters(m, ci_method = "uniroot")
  })
  expect_silent({
    mp2 <- model_parameters(m, ci_method = "profile")
  })
  expect_snapshot(print(mp1))
  expect_snapshot(print(mp2))
})