set.seed(123) data("data", package = "ameras") # Prophaz, basic model, all methods for (method in all_methods) { test_that(paste("prophaz snapshot:", method), { if (method %in% c("ERC", "MCML", "BMA")) { skip_on_cran() } fit <- fit_combination( family = "prophaz", Y = "status", doseRRmod = "EXP", deg = 2, X = NULL, M = NULL, data = data, methods = method, niter.BMA = 5000, nburnin.BMA = 500 ) fit <- confint(fit, type = c("wald.orig", "percentile")) expect_snapshot_value( coef(fit), tolerance = 1e-4, style = "deparse" ) expect_snapshot_value(fit[[method]]$sd, tolerance = 1e-4, style = "deparse") expect_snapshot_value(fit[[method]]$CI, tolerance = 1e-4, style = "deparse") expect_snapshot(print(summary(fit)$summary_table, digits = 2)) }) }