cleverly.sensitivity.RobustnessValue#
- class cleverly.sensitivity.RobustnessValue(values: Mapping[str, Any], *, estimand: str, psi: float, rho: float, level: float, null_hypothesis: float, refusal: MechanismRefusal | None = None)[source]#
The confounding strength that would move an estimate to its null.
A
dictwith the keysrobustness_value()documents ("rv", the limit value under its status name,"max_bias", and the keys a plug-in or descriptive bound adds), sovalue["rv"]andjson.dumps(value)work as on any mapping.summary()prints what the numbers mean.- Parameters:
- values
mappingofstrtoAny The keys and values, in order.
- estimand
str The estimand the values describe.
- psi
float Its reported estimate.
- rho
float The alignment the values assume.
- level
float The coverage level of the confidence limit the limit value reads.
- null_hypothesis
float The value the strengths are measured against.
- refusal
MechanismRefusalorNone Why the limit value is withheld, when an estimator rule withholds it.
- values