test_that("pglmm runs", {
meta = data.frame(x = rnorm(100), sample_id = paste0("t", 1:100))
tr = ape::rtree(100)
res = anpan_pglmm(meta, tr,
outcome = "x",
iter_sampling = 10,
iter_warmup = 10,
show_plot_cor_mat = FALSE,
show_plot_tree = FALSE)
expect_type(res, "list")
})
test_that("logistic pglmm runs", {
meta = data.frame(x = as.logical(rbinom(100, 1, prob = .5)), sample_id = paste0("t", 1:100))
tr = ape::rtree(100)
res = anpan_pglmm(meta, tr,
family = "binomial",
outcome = "x",
iter_sampling = 10,
iter_warmup = 10,
show_plot_cor_mat = FALSE,
show_plot_tree = FALSE)
expect_type(res, "list")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.