tests/testthat/test-priors.R

test_that("sd_prior() returns the expected list", {

  actual <- sd_prior("par_beta", "lognormal", c(0, 1))

  expected <- list(par_name = "par_beta",
                   dist     = "lognormal",
                   mu       = 0,
                   sigma    = 1,
                   min      = 0,
                   type     = "constant")

  expect_equal(actual, expected)
})

Try the readsdr package in your browser

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

readsdr documentation built on May 29, 2024, 2:45 a.m.