| summarise_hurdle_top3_posthoc | R Documentation |
Extracts and summarises the top three Hurdle-NB specifications (by estimated ELPD) from BMA selection tables, either taken from an in-memory list of results or read from CSV files on disk.
summarise_hurdle_top3_posthoc(bma_per_combo, dir_csv)
bma_per_combo |
Optional named list of BMA results by control
combination, where each element contains a component |
dir_csv |
Character scalar; directory where BMA weight CSV files
|
If bma_per_combo is provided and non-empty, the function uses
its $table components. Otherwise, it scans dir_csv for
BMA weight files matching the pattern
"bma_weights_specC_ctrl*.csv" and reads them.
All valid rows are combined, ordered by decreasing elpd, and
the top three models are retained. For each, a human-readable
configuration string summarising k, the horseshoe hyperparameters
and the control combo is constructed.
A data frame with up to three rows and columns:
model: constant string "Hurdle-NB".
config: textual description of the specification.
elpd, elpd_se, weight:
selection metrics from the BMA table.
k, hs_tau0, hs_slab_scale,
hs_slab_df, combo: numeric tuning parameters
and control-combo tag.
If no valid tables are found, a single-row data frame with NA
entries is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.