Designs
Design
Section titled “Design”DesignNo docstring.
Randomized
Section titled “Randomized”RandomizedA randomized assignment with a named control arm.
Observational
Section titled “Observational”ObservationalA non-randomized comparison identified via an explicit adjustment set.
Encouragement
Section titled “Encouragement”EncouragementA randomized encouragement: assignment is random, uptake is chosen.
Identifies ITT and compliance without an exclusion declaration; LATE
requires it. one_sided declares control cannot take up (the
estimator hard-errors on any control uptake). min_first_stage_z
gates LATE emission - below it, only ITT and compliance are reported.
UptakeSpec
Section titled “UptakeSpec”UptakeSpecThe binary uptake fact of an encouragement design.
fact names the uptake event (0/1 column on the dataframe path,
overridable via uptake=); window_days=None means ever-took-up,
else uptake freezes to the first window_days days after exposure.
ExclusionRestriction
Section titled “ExclusionRestriction”ExclusionRestrictionExplicit acknowledgment that assignment moves the outcome only
through uptake. Untestable from data, so it must be declared, like
Observational.adjustment: assumptions stay visible, never implicit.
AdjustmentSet
Section titled “AdjustmentSet”AdjustmentSetCovariates declared sufficient to identify treatment effect in an observational comparison; a declaration, not a validation - callers must argue elsewhere that it satisfies conditional ignorability.
missing controls null/NaN handling: "refuse" (default)
raises; "impute-indicator" pooled-mean imputes with a balanced
indicator; "pattern" fits propensity per missingness pattern;
"complete-case" keeps fully-observed units only; "allow"
passes NaN to explicit NaN-native learners.