tests/testthat/test-diagnostics.R

context("diagnostics")

test_that("diagnostics.R", {
 data(Hald)
 hald_gprior <- bas.lm(Y ~ ., data=Hald, method='MCMC', MCMC.iterations = 10^6)
 expect_null(diagnostics(hald_gprior))
 hald_gprior <- bas.lm(Y ~ ., data=Hald, method='MCMC+BAS', MCMC.iterations = 10^6)
 expect_error(diagnostics(hald_gprior))
})

Try the BAS package in your browser

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

BAS documentation built on Nov. 2, 2022, 5:09 p.m.