tests/testthat/test-stages_csbhc.R

test_that("stages_csbhc works", {
  start <- random_sevt(list(A = c("a", "aa", "aaa"),
                            B = c("b", "bb"),
                            C = c("c", "cc")))
  start <- sevt_fit(start, sample_from(start, 1000), lambda = 0)
  expect_silent(res <- stages_csbhc(start))
})

Try the stagedtrees package in your browser

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

stagedtrees documentation built on May 29, 2024, 12:33 p.m.