tests/testthat/test-WAIC.R

context("compute WAIC")

test_that("WAIC gives correct output", {
   expect_equal(round(computeWAIC(TD$m),1),
                0.5)
})

Try the Hmsc package in your browser

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

Hmsc documentation built on Aug. 11, 2022, 5:11 p.m.