tests/testthat/test-interventions.R

test_that("Tanh smoother does not allow negative slope", {
   expect_error(tanh_coverage_smoother(t = 2,
                                       start = 0,
                                       stop = 5,
                                       coverage = 1,
                                       tanh_slope = -0.1))
})
Como-DTC-Collaboration/como-models documentation built on May 22, 2022, 9:33 a.m.