Skip to contents

**Post-hoc analysis function** — takes a finished fb4_result object and bundles growth, feeding, and energy-budget analyses into a single list. Useful when you need all major metrics in one call.

This is different from the internal $summary slot (built automatically during result construction by create_unified_summary()). This function re-derives richer metrics from daily_output and supports uncertainty propagation for MLE / bootstrap / hierarchical results.

Usage

create_result_summary(result, individual_id = NULL, confidence_level = 0.95)

Arguments

result

An fb4_result object returned by run_fb4()

individual_id

For hierarchical models: individual ID to extract (NULL returns population-level summary)

confidence_level

Confidence level for uncertainty intervals, default 0.95

Value

Named list with model_info, growth, feeding, energy_budget, and model_fit sections