tests/testthat/test-npars.R

test_that("npars", {
  expect_identical(npars(mcmcr_example), 3L)
  expect_identical(npars(mcmcrs(mcmcr_example, mcmcr_example)), 3L)
  expect_identical(npars(mcmcr_example$alpha), 1L)
  expect_identical(npars(coda::as.mcmc.list(mcmcr_example)), 3L)
  expect_identical(npars(as.mcarray(mcmcr_example$beta)), 1L)
})

Try the mcmcr package in your browser

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

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.