cleverly.datasets.team_readmission_truth#

cleverly.datasets.team_readmission_truth(offer: float, call: float, nodes: int = 64) → float[source]#

Return the share readmitted by day 90 had every patient followed the plan (offer, call).

Parameters:
offerfloat

The discharge offer of the plan, 0 or 1.

callfloat

The day-30 call of the plan, 0 or 1.

nodesint, default=64

The Gauss–Hermite nodes over discharge_risk.

Returns:
float

\(E[Y_{a_1 a_2}]\), by enumeration over lives_alone and quadrature over discharge_risk.

Examples

>>> from cleverly.datasets import team_readmission_truth
>>> round(team_readmission_truth(1.0, 1.0) - team_readmission_truth(0.0, 0.0), 4)
-0.1301