tests/testthat/test-api-re-model.R

test_that("re model works with f", {
  out <- f(~ 1 + x,
    model = re(),
    noise = noise_nig(),
    data = data.frame(x = 1:7)
  )
  expect_true(inherits(out, "ngme_model"))
  expect_equal(out$operator$model, "re")
})

Try the ngme2 package in your browser

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

ngme2 documentation built on May 20, 2026, 9:10 a.m.