Nothing
# Tests for combine_chains
#
# Author: mjskay
###############################################################################
library(dplyr)
library(tidyr)
test_that("combine_chains works on a simple example", {
data(line, package = "coda")
ref = line %>%
tidy_draws() %>%
mutate(
.draw = as.integer(.iteration + (.chain - 1) * max(.iteration))
)
line %>%
tidy_draws() %>%
combine_chains() %>%
expect_equal(ref)
})
test_that("combine_chains works with a named output column", {
data(line, package = "coda")
ref = line %>%
tidy_draws() %>%
mutate(d = as.integer(.iteration + (.chain - 1) * max(.iteration)))
line %>%
tidy_draws() %>%
combine_chains(into = "d") %>%
expect_equal(ref)
})
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.