Small-n checklist
Continuous MTP and mediation with tens to low hundreds of units (conservation, ecology, early trials) need different defaults from large-cohort epi software. Theory still comes from LMTP and targeted learning (Díaz et al., 2023; van der Laan & Rose, 2011); the checklist below is about finite-sample practice. See Methods and References.
Before you estimate
- Call
recommend_run_options(n; engine, n_mediators)and pass the kwargs intorun_lmtp_grid/run_mediation_grid/execute_estimand. - Prefer
SMALL_N_SL_LEARNERSoradaptive_learners(n)overRICH_SL_LEARNERSwhenn < 80(Super Learner library must be estimable at the given n; van der Laan, Polley & Hubbard, 2007). - Keep
parallel=falseunless you have measured headroom (δ-grid threading can thrash memory on multi-core laptops). - Run
positivity_report(orpositivity=trueon the grid) and inspectweak_support/unsupported_shiftcells before interpreting TE curves (Petersen et al., 2012; Díaz et al., 2023 on MTP-designed positivity). - For mediation, run
mediation_n_mc_sweepandmediation_stability_summary; raisen_mcuntil TE SE and signs stabilise (nested MC is part of the estimand’s approximation error under continuous MTP mediation; cf. Liu et al., 2024). - Attach
sensitivity_report(tipping-point / partial-R²) for any claim that is policy-relevant under possible omitted confounding (Cinelli & Hazlett, 2020). - Treat discovery graphs as sensitivity, not oracles:
discovery_adjustment_sensitivity/merge_discovery_sensitivity!(Pearl, 2009; Spirtes et al., 2000).
Policy library
Policies implement scientifically interpretable MTPs (Díaz & van der Laan, 2012; Díaz et al., 2023):
- Additive z-shift:
additive_shift_policy(default) - Multiplicative:
multiplicative_shift_policy - Threshold (“raise if below c”):
threshold_shift_policy
Longitudinal
Use SequentialPolicy / run_sequential_lmtp for multi-time exposures, with ID from CausalDynamics TemporalEffectQuery when a lag DAG is available (Díaz et al., 2023). Point-treatment LongitudinalPolicy carries temporal ID metadata for single-time pathway→AUC analyses.
Sysimage (optional)
See scripts/build_mtp_sysimage.jl in the CDCS monorepo for a PackageCompiler recipe (community convenience; not required for CI).