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:
dictofstrtofloatey_obsis the top-box rate under current practice,ey1andey0the rates if every patient or no patient got the offer, andate,att,atc,rrandorthe contrasts of those two.par[reference=a]isey_obsminus the rate with every patient at levela, andpaf[reference=a]is one minus their ratio.cde_ate[visit=z]andcde_rr[visit=z]compare the offer with no offer while every patient’s 7-day visit is held atz, andcde_ey1[visit=z]andcde_ey0[visit=z]are their two rates.offered_shareandresponse_rateare the population shares offered and responding.
See also
cleverly.datasets.make_population_impactThe 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