Nothing
# * @testing get_seq_decision
context("get_seq_decision: Check output")
test_that("get_seq_decision", {
likelihood_ratio <- 4
A <- 17
B <- 1
A_log <- log(A)
B_log <- log(B)
boundaries <- list(A = A,
B = B,
A_log = A_log,
B_log = B_log
)
decision <- get_seq_decision(likelihood_ratio, boundaries)
expect_equal(decision, "continue sampling")
likelihood_ratio <- 17
decision <- get_seq_decision(likelihood_ratio, boundaries)
expect_equal(decision, "accept H1")
likelihood_ratio <- 1
decision <- get_seq_decision(likelihood_ratio, boundaries)
expect_equal(decision, "accept H0")
})
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.