tests/testthat/test-timeroc_obj.R

test_that("Loading timeROC object", {
  expect_equal(inherits(timeroc_obj(dist = "lognormal-weibull-PH"), "TimeROC"), TRUE)
  expect_equal(inherits(timeroc_obj(dist = "lognormal-weibull-copula",
                                    copula = "gaussian"), "TimeROC"), TRUE)
  expect_error(timeroc_obj(), "Please provide the distributions and models to be used.
                          EG: normal-weibull-PH / normal-weibull-copula")
  expect_error(timeroc_obj(dist = "lognormal-weibull-copula"), "Please provide a listed copula")
})

Try the parTimeROC package in your browser

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

parTimeROC documentation built on April 11, 2025, 5:43 p.m.