cleverly.datasets.recovery_score_truth#

cleverly.datasets.recovery_score_truth(o1: float, o2: float, o3: float) → float[source]#

Return the exact mean 30-day recovery score under one static plan.

Parameters:
o1float

The offer at discharge, 0 or 1.

o2float

The offer on day 10, 0 or 1.

o3float

The offer on day 20, 0 or 1.

Returns:
float

The mean score had every patient followed the plan, a finite sum over lives_alone and the two symptom flags.

See also

cleverly.datasets.make_recovery_score

The simulated program whose truths these are.

Examples

>>> from cleverly.datasets import recovery_score_truth
>>> round(recovery_score_truth(1, 1, 1) - recovery_score_truth(0, 0, 0), 4)
11.215