cleverly.sensitivity.ObservedConfounderCalibration#

class cleverly.sensitivity.ObservedConfounderCalibration(covariate: str, role: Literal['treatment', 'outcome'], family: Literal['binomial', 'gaussian'], strength: float, method: str, component: str | None = None)[source]#

Record one model-dependent observed-covariate calibration.

Parameters:
covariatestr

Numeric adjustment covariate used for the comparison.

role{“treatment”, “outcome”}

Perturbed variable whose source-style scale is reported.

family{“binomial”, “gaussian”}

Variable family that determines the calibration rule.

strengthfloat

Prediction-change fraction or signed standardized marginal coefficient.

methodstr

Finite-sample rule used to calculate strength.

componentstr or None

The component of a vector treatment that a treatment row calibrates, or None.

Methods#

Attributes#

ObservedConfounderCalibration.component: str | None = None#
ObservedConfounderCalibration.covariate: str#
ObservedConfounderCalibration.role: Literal['treatment', 'outcome']#
ObservedConfounderCalibration.family: Literal['binomial', 'gaussian']#
ObservedConfounderCalibration.strength: float#
ObservedConfounderCalibration.method: str#