cleverly.datasets.population_impact_truth#

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

Return the exact population truths of the population-impact law.

Returns:
dict of str to float

ey_obs is the top-box rate under current practice, ey1 and ey0 the rates if every patient or no patient got the offer, and ate, att, atc, rr and or the contrasts of those two. par[reference=a] is ey_obs minus the rate with every patient at level a, and paf[reference=a] is one minus their ratio. cde_ate[visit=z] and cde_rr[visit=z] compare the offer with no offer while every patient’s 7-day visit is held at z, and cde_ey1[visit=z] and cde_ey0[visit=z] are their two rates. offered_share and response_rate are the population shares offered and responding.

See also

cleverly.datasets.make_population_impact

The draw these values describe.

Examples

>>> from cleverly.datasets import population_impact_truth
>>> truth = population_impact_truth()
>>> round(truth["ey_obs"], 4), round(truth["ey1"], 4), round(truth["ey0"], 4)
(0.5641, 0.644, 0.4791)
>>> round(truth["par[reference=1]"], 4)
-0.0799