Nothing
skip_on_cran()
skip_on_os("windows")
skip_if_not_installed("brms")
skip_if_not_installed("BH")
skip_if_not_installed("RcppEigen")
skip_if_not_installed("emmeans")
test_that("estimate_means - brms", {
model <- brms::brm(Sepal.Length ~ Species * Sepal.Width, data = iris, refresh = 0, iter = 1000)
estim <- estimate_means(model, backend = "emmeans")
expect_identical(dim(estim), c(3L, 5L))
})
test_that("estimate_relation - brms", {
model <- brms::brm(Sepal.Length ~ Species * Sepal.Width, data = iris, refresh = 0, iter = 1000)
estim <- estimate_relation(model, preserve_range = FALSE)
expect_identical(dim(estim), c(30L, 6L))
# estim <- estimate_relation(model, preserve_range=FALSE, iterations = 10)
# expect_equal(dim(estim), c(30, 6))
})
test_that("estimate_means - brms", {
model <- brms::brm(Sepal.Length ~ Species * Sepal.Width, data = iris, refresh = 0, iter = 1000)
estim <- estimate_slopes(model, by = "Species", backend = "emmeans")
expect_identical(dim(estim), c(3L, 5L))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.