https://github.com/cran/bayestestR
Tip revision: 428249f43a9c6fd0c425b28deb5fee51a9525d69 authored by Dominique Makowski on 18 September 2022, 01:46:03 UTC
version 0.13.0
version 0.13.0
Tip revision: 428249f
test-point_estimate.R
if (requiet("rstanarm") && requiet("brms") && requiet("insight") && requiet("httr")) {
m <- insight::download_model("stanreg_merMod_5")
p <- insight::get_parameters(m, effects = "all")
test_that("point_estimate", {
expect_equal(
point_estimate(m, effects = "all")$Median,
point_estimate(p)$Median,
tolerance = 1e-3
)
})
m <- insight::download_model("brms_zi_3")
p <- insight::get_parameters(m, effects = "all", component = "all")
test_that("point_estimate", {
expect_equal(
point_estimate(m, effects = "all", component = "all")$Median,
point_estimate(p)$Median,
tolerance = 1e-3
)
})
}