PreTreatmentPlaceboCheck#
- class causalpy.checks.pre_treatment_placebo.PreTreatmentPlaceboCheck[source]#
Check that each pre-treatment event-study estimate is near zero.
Wraps the pre-treatment placebo effects already computed by
StaggeredDifferenceInDifferencesin its result bundle (result.att_event_time). Estimates are judged one event time at a time. A mean of zero produced by cancelling pre-trends is not a pass.- Parameters:
threshold (
float) – Two-sided significance level for each pre-treatment estimate. Applied when a row has a usableatt_stdandn_obs> 1. Storedatt_lower/att_upperbounds are compared at this level only when their coverage, read fromresult.hdi_prob, determines the result. Otherwise that row is not reported as a pass or a fail atthreshold. A point estimate with no usable standard error and no interval is not a significance test:thresholdis not an absolute tolerance on the ATT.
Methods
PreTreatmentPlaceboCheck.run(experiment, context)Evaluate pre-treatment event-study ATTs for evidence of pre-trends.
PreTreatmentPlaceboCheck.validate(experiment)Verify the experiment is a fitted StaggeredDifferenceInDifferences.
Attributes
applicable_methods- classmethod __new__(*args, **kwargs)#