File: test-model_parameters.glmgee.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 (19 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
skip_on_cran()
skip_if_not_installed("glmtoolbox")
skip_if_not_installed("withr")

withr::with_options(
  list(parameters_exponentiate = FALSE),
  test_that("model_parameters.glmgee", {
    data(spruces, package = "glmtoolbox")
    fit1 <- glmtoolbox::glmgee(
      size ~ poly(days, 4) + treat,
      id = tree,
      family = Gamma("log"),
      corstr = "AR-M-dependent(1)",
      data = spruces
    )
    out <- model_parameters(fit1)
    expect_snapshot(print(out))
  })
)