Enum: CohortGrouping
How a cohort rule cuts its candidates into groups along a measure. The values and their meaning are those of tvbo.analysis.statistics.group_index, which a grouped statistic uses too.
URI: tvbo_study:enum/CohortGrouping
Permissible Values
| Value | Meaning | Description |
|---|---|---|
| equal_width | None | Bins of equal width |
| equal_count | None | Groups of equal size by rank |
Slots
| Name | Description |
|---|---|
| grouping | How the candidates are cut into groups |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/tvbo/study
LinkML Source
name: CohortGrouping
description: How a cohort rule cuts its candidates into groups along a measure. The
values and their meaning are those of ``tvbo.analysis.statistics.group_index``,
which a grouped statistic uses too.
from_schema: https://w3id.org/tvbo/study
permissible_values:
equal_width:
text: equal_width
description: Bins of equal width. The range from the smallest to the largest finite
value among the candidates is cut into ``n_groups`` intervals of the same width;
each is closed below and open above, and the last is closed on both sides, so
the largest value belongs to it. Group sizes follow the distribution of the
measure and a bin may hold nobody. Refused when all values are equal and more
than one group is asked for, since the range then has no width.
equal_count:
text: equal_count
description: Groups of equal size by rank. The candidates are ordered by ascending
value, equal values in the candidates' own order, and that order is cut into
``n_groups`` consecutive runs whose sizes differ by at most one, the longer
runs first. Equal values can therefore fall into neighbouring groups.