Export abnFit object fitted with Bayesian methods
export_abnFit_bayes(
object,
format,
include_network,
scenario_id = NULL,
label = NULL,
...
)A named list with components: scenario_id, label, variables, parameters, arcs.
An object of class abnFit, typically created by fitAbn.
Character string specifying the export format. Currently, only
"json" is supported.
Logical, whether to include network structure (variables
and arcs). Default is TRUE.
Optional character string or numeric identifier for the model
run or scenario. Useful for tracking multiple model versions or experiments.
Default is NULL.
Optional character string providing a descriptive name or label
for the scenario. Default is NULL.
Additional export options (currently unused, reserved for future extensions).
This function handles abnFit objects fitted using Bayesian methods. It will extract the posterior distributions and other Bayesian-specific information.
The structure will follow the same variables/parameters/arcs format, but parameters will include posterior summaries (mean, median, credible intervals) instead of point estimates and standard errors.
TODO: Implement the full extraction logic for Bayesian models, including:
Posterior mean/median for parameters
Credible intervals
Convergence diagnostics (Rhat, ESS)
Prior specifications