tests/testthat/test-utils_draws.R

test_that("names_have_subgroup()", {
  expect_true(names_have_subgroup(c("x|y|z", "a|b|_c", "|a|b", "||")))
  expect_false(names_have_subgroup(c("xy|z", "a|b_c", "a|", "|")))
  expect_error(names_have_subgroup(c("a|b", "a||b")), class = "brm_error")
})

Try the brms.mmrm package in your browser

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

brms.mmrm documentation built on Oct. 3, 2024, 1:08 a.m.