Prepare a describe_distribution object for inline reporting

Description

Converts a parameters_distribution object (output of datawizard::describe_distribution()) into a nested named list suitable for inline R Markdown / Quarto reporting.

Usage

prep_distribution(obj)

Arguments

obj A parameters_distribution object.

Value

Without stratification: a named list keyed by variable name, each element containing formatted summary statistics. With stratification: a nested named list keyed first by group then by variable name.