tests/testthat/test-cTMed-wald-probs-of-alpha-dot.R

## ---- test-cTMed-wald-probs-of-alpha-dot
lapply(
  X = 1,
  FUN = function(i,
                 text,
                 tol) {
    message(text)
    testthat::test_that(
      text,
      {
        testthat::skip_on_cran()
        testthat::expect_true(
          all(
            abs(
              c(2.5, 97.5) - cTMed:::.ProbsofAlpha(alpha = 0.05) * 100
            ) <= tol
          )
        )
      }
    )
  },
  text = "test-cTMed-wald-probs-of-alpha-dot",
  tol = 0.01
)

Try the cTMed package in your browser

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

cTMed documentation built on Nov. 5, 2025, 7:18 p.m.