Nothing
test_that("installed brms tutorial bundles preserve the fitting rows and sampling IDs", {
skip_if_not_installed("brms", minimum_version = "2.20.0")
path <- system.file("extdata", "tutorial", "median-examples.rds", package = "IJSE")
examples <- readRDS(path)
for (name in c("independent", "clustered")) {
z <- examples[[name]]
expect_s3_class(z$fit, "brmsfit")
expect_identical(z$cluster, z$data$group)
expect_length(z$cluster, nrow(z$data))
expect_equal(z$fit$data$x, z$data$x)
expect_equal(z$fit$data$y, z$data$y)
expected_units <- if (name == "independent") 200L else 30L
expect_length(unique(z$cluster), expected_units)
grouped <- ijse(z$fit, cluster_var = z$cluster, diagnostics = "none")
expect_true(grouped$clustered)
expect_equal(grouped$n_units, expected_units)
expect_equal(coef(grouped), coef(ijse(z$fit, diagnostics = "none")))
}
})
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.