tests/testthat/test_historical_binomial.R

context("")
test_that("The historical_binomial are", {
  expect_equal(historical_binomial(y0_treatment = 10, y0_control = 12,
                                   N0_treatment = 29, N0_control = 25,
                                   discount_function = "weibull", alpha_max = 1,
                                   fix_alpha = "FALSE", weibull_scale = 0.135, weibull_shape = 3,
                                   method = "mc")$N0_control, 25)
  expect_equal(historical_binomial(y0_treatment = 10, y0_control = 12,
                                   N0_treatment = 29, N0_control = 25)$discount_function, "identity")
})

Try the bayesCT package in your browser

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

bayesCT documentation built on July 2, 2020, 2:34 a.m.