
Assemble the model convergence-status table
Source:R/calc_model_convergence_status.R
calc_model_convergence_status.RdReads the calibration convergence diagnostics JSON from a results directory
and assembles the metric/value/target/status table that
plot_model_convergence_status renders. The derived
convergence_status.csv (distinct from the raw
convergence_results.parquet) is written here so it is produced
independently of plotting, and the plot consumes the returned table.
Value
A list with: metrics_data (data.frame with columns
Metric, Description, Target, Value,
Status), metric_expressions (list of plotmath expressions,
aligned row-for-row with metrics_data), diagnostics (the
parsed JSON), param_ess_data (data.frame or NULL),
n_params, n_pass, and target_ess_param. Returns
NULL if no diagnostics file is found or no metrics could be assembled.