tests/testthat/test_geess.R

library(testthat)
library(geess)
library(MASS)

res <- geess(formula = y ~ trt + period + lbase + lage,
             family = poisson, data = epil, id = subject,
             repeated = period, corstr = "unstructured",
             beta.method = "BCGEE", SE.method = "MB")

res_sum <- summary(res)

coef1 <- res$coefficients[2]
names(coef1) <- NULL

se1 <- res_sum$coefficients[2, 2]

test_that("Test geessbin not cleared", {
  expect_equal(round(coef1, 4), -0.0141)
  expect_equal(round(se1, 4), 0.1912)
})

Try the geess package in your browser

Any scripts or data that you put into this service are public.

geess documentation built on July 27, 2026, 9:10 a.m.