cleverly.effect_curves.CurveBand#

class cleverly.effect_curves.CurveBand(grid: dict[str, ndarray], estimate: NDArray[float64], lower: NDArray[float64], upper: NDArray[float64], critical_value: float, alpha: float, n_replicates: int, kind: str, support: Support | None = None)[source]#

A simultaneous band of the projection curve over a declared finite grid.

Parameters:
griddict of str to ndarray

The modifier values of each grid point.

estimatendarray

The curve at each point.

lowerndarray

The lower end of the band.

upperndarray

The upper end of the band.

critical_valuefloat

The multiplier quantile of the max-t statistic.

alphafloat

The joint level is 1 - alpha.

n_replicatesint

Multiplier draws.

kindstr

The multiplier distribution.

supportSupport or None, default None

The band’s own support (cleverly._support.band_support()): supported only where the coefficients’ row licenses the simultaneous band for this multiplier, the identity scale, the normal reference and at least the row’s draws. None for a band built outside a fit, by ProjectionCurve.band().

Methods#

Attributes#

CurveBand.support: Support | None = None#
CurveBand.grid: dict[str, ndarray]#
CurveBand.estimate: NDArray[float64]#
CurveBand.lower: NDArray[float64]#
CurveBand.upper: NDArray[float64]#
CurveBand.critical_value: float#
CurveBand.alpha: float#
CurveBand.n_replicates: int#
CurveBand.kind: str#