Skip to contents

Each cell is one (cohort structure, parameter combination) pair, so several cells share a composition and differ in parameters and cohort ages. The spread across them is therefore real variation in what the parameter set does to that mixture, not noise, and is reported as a band rather than averaged away.

Usage

growth_structure_summary(cells, min_cells = 25L, start_age_breaks = NULL)

Arguments

cells

A tibble from growth_structure_cell_curves().

min_cells

Integer. Drop compositions represented by fewer cells than this, which are too thin to read a band from. Applied per class when start_age_breaks is given, so a stratified call needs more cells overall.

start_age_breaks

Numeric or NULL. Breaks passed to cut() to bin each cell's start_age, adding a start_class column and summarising within it. NULL (the default) pools over starting age, which is the historical behaviour. Requires cells to carry start_age.

Value

A tibble, one row per composition and age (and start_class when stratified).

Details

Pooling over starting age is usually the wrong default for reading a band. A composition's cells differ in two ways at once: the parameter combination, and the ages the map gave their cohorts. The second dominates, so a band taken over the pool is mostly stand age wearing the parameters' name. Supply start_age_breaks to summarise WITHIN starting-age classes instead, which leaves the remaining spread attributable to the parameters.