tests/testthat/test_study_details.R

context("")
test_that("The study details are", {
  expect_equal(study_details(total_sample_size = 100, study_period = 50,
                             interim_look = c(80, 90))$N_total, 100)
  expect_equal(study_details(total_sample_size = 100, study_period = 50,
                             interim_look = c(80, 90))$interim_look, c(80, 90))
  expect_equal(study_details(total_sample_size = 100, study_period = 50,
                             interim_look = c(80, 90))$EndofStudy, 50)
})

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.