tests/testthat/test_unitprior.R

context("ashr with \"unit\" prior")

test_that("ash emits error if try to use prior=unit without VB", {
  expect_error(ash(rnorm(10),1,optmethod="mixEM",prior="unit"))
})

test_that("ash emits error if try to use prior<1 without VB", {
  expect_error(ash(rnorm(10),1,optmethod="mixEM",nullweight=0.5))
})

Try the ashr package in your browser

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

ashr documentation built on Aug. 22, 2023, 1:07 a.m.