tests/testthat/test-Traceplot.R

test_that("traceplot works", {
  data("epil1")
  fit.BCC <- epil1
  temp <- traceplot(fit=fit.BCC, parameter="PPI",
            ylab="pi",xlab="MCMC samples")
  expect_length(temp, 2)
})

test_that("invailid parameter", {
  data("epil1")
  fit.BCC <- epil1
  expect_error(traceplot(fit=fit.BCC, parameter="POI",
                    ylab="pi",xlab="MCMC samples"))

})

Try the BCClong package in your browser

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

BCClong documentation built on June 24, 2024, 1:07 a.m.