tests/testthat/test-test.linear_re.R

test_that("test.linear_re function behaves correctly", {
  data(ExampleDataLinear)
  Y <- ExampleDataLinear$Y
  Z <- ExampleDataLinear$Z
  ID <- ExampleDataLinear$ID

  fit_re <- linear_re(Y = Y, Z = Z, ID = ID)

  test_all <- test(fit_re)
  test_parm <- test(fit_re, parm = c(1, 3:5, 9))

  expect_true(all(test_parm == test_all[c(1,3:5,9),]),
              info = "Argument 'parm' behaves correctly.")
})

Try the pprof package in your browser

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

pprof documentation built on April 12, 2025, 1:33 a.m.