library(mixage)
context("main functions: best age mixing")
source("common_test_defs.R")
test_that("best_age_mixing runs without error", {
out <- best_age_mixing(mixing_data, start_ages)
# was sampled from normal, so it's good that we get normal
expect_true(out$all_AIC[, 1][which.min(out$all_AIC[, 3])] == 'normal')
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.