tests/testthat/test_metapro.R

test_that('helper_wZ',
          {
            roots <- wZ(p = p, weight=weight, is.onetail = is.onetail, eff.sign = eff.sign)
            expect_lte(roots$p,1)
          })
test_that('helper_wFisher',
          {
            roots <- wZ(p = p, weight=weight, is.onetail = is.onetail, eff.sign = eff.sign)
            expect_lte(roots$p,1)
          })
test_that('helper_lancaster',
          {
            roots <- wZ(p = p, weight=weight, is.onetail = is.onetail, eff.sign = eff.sign)
            expect_lte(roots$p,1)
          })

Try the metapro package in your browser

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

metapro documentation built on March 31, 2023, 6:35 p.m.