cleverly.datasets.navigation_doses_truth#

cleverly.datasets.navigation_doses_truth() → dict[str, float][source]#

Return the exact success share under each dose plan, and each plan’s effect.

Returns:
dict of str to float

ey_policy[<plan>] for each plan of DOSE_PLANS, and ate_policy[<plan> vs current practice] for each other plan. The keys are the names that a ModifiedTreatmentPolicyEffect fit reports when its policies carry the plan names.

See also

cleverly.datasets.make_navigation_doses

Draws data from this law.

Notes

Given the covariates, the success probability is smooth in each dose residual except at the residual where the raised dose reaches its cap. Each residual is integrated with 32 Gauss-Legendre nodes on each side of that point, and the covariates with a 12-node Gauss-Hermite rule in each dimension. Doubling every node count moves no value by more than 1e-9.

Examples

>>> from cleverly.datasets import navigation_doses_truth
>>> truth = navigation_doses_truth()
>>> round(truth["ate_policy[both vs current practice]"], 4)
0.0731