cleverly.bases.Indicators#
- class cleverly.bases.Indicators(column: str, levels: Sequence[Any] = (), intercept: bool = True)[source]#
Indicators of the declared levels of one categorical modifier.
Under an intercept the reference level, the first declared one, is dropped.
Methods#
- Indicators.level_set(column: str) tuple[Any, ...] | None[source]#
The levels this basis carries for
column, orNone.
- Indicators.named(modifiers: Modifiers | None) Indicators[source]#
This basis with its levels resolved from
modifiers.- Parameters:
- Returns:
IndicatorsA basis that carries its levels, so its terms are named.
- Indicators.truncate(k: int) Indicators[source]#
Return this basis: a categorical modifier enters whole at every size.
- Parameters:
- k
int A size of at least one.
- k
- Returns:
IndicatorsThis basis.