| print_floor_smoketest | R Documentation |
Nicely prints a summary of the FLOOR smoke test produced by
smoketest_floor_elpd_invariance, indicating whether
the ELPD-based ranking of models is invariant across different
FLOOR constants and listing the combined results.
print_floor_smoketest(st)
st |
A list returned by
|
The function uses cli to print a section header and an info
message stating whether the ELPD ranking is invariant across values
of FLOOR. It then arranges the combined table by FLOOR
and decreasing elpd, selects a subset of columns, and prints
it to the console.
This is a convenience/reporting helper and does not modify st.
Invisibly returns the input object st, so it can be
used in pipes if desired.
# 1. Define dummy data inside the example so it runs on CRAN checks
st_dummy <- list(
same_order = TRUE,
combined = data.frame(
FLOOR = rep(c(-1e6, -1e4), each = 2),
fit_id = rep(c("model_1", "model_2"), 2),
elpd = c(-100.1, -101.3, -100.1, -101.3),
elpd_se = c(1.2, 1.3, 1.2, 1.3),
rank_elpd = c(1L, 2L, 1L, 2L)
)
)
# 2. Run the function
print_floor_smoketest(st_dummy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.