跳到主要内容
知仓学习社ZHICANG

choosing-causalpy-methods

Choose the appropriate CausalPy experiment class from a causal question, data structure, treatment assignment, and identification assumptions. Use b…

不碰外部(只输出文字)无严重或高危命中brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少2 个文本文件,8 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Choosing CausalPy Methods

Use this skill to translate a user's causal question into a CausalPy experiment choice. This is the design-intake skill, not the implementation skill. Once the method is chosen, hand off to running-causalpy-experiments for constructor details, model configuration, priors, summaries, plots, and interpretation.

Intake Checklist

  1. Restate the estimand: ATE, ATT, local threshold effect, treatment-on-treated over time, cumulative impact, or a policy/campaign lift.
  2. Identify the data shape: single time series, wide panel of units, long panel of unit-time rows, cross-section, or pre/post group data.
  3. Identify treatment assignment: known intervention time, staggered adoption, threshold/cutoff, kink, instrument, observed treatment with confounders, or treated unit plus donor pool.
  4. Check the identifying story: parallel trends, no anticipation, no manipulation at cutoff, valid instrument, overlap/positivity, convex hull/donor support, or trend continuity.
  5. Recommend one primary CausalPy experiment and any plausible alternatives, then explain the extra data or assumptions needed to choose among them.

Fast Routing

  • One treated time series, known intervention time, no donor pool: InterruptedTimeSeries.
  • Known level/slope changes in one time series, especially multiple interruptions: PiecewiseITS.
  • Treated and control groups observed before and after one intervention: DifferenceInDifferences.
  • Units adopt treatment at different times: StaggeredDifferenceInDifferences.
  • One or more treated units with multiple untreated donor units in wide panel format: SyntheticControl.
  • Synthetic-control setting where both unit weights and pre-period time weights are part of the design: SyntheticDifferenceInDifferences.
  • Panel regression or fixed-effects adjustment is the target rather than a named quasi-experimental design: PanelRegression.
  • Pretest/posttest nonequivalent groups with a baseline outcome: PrePostNEGD.
  • Treatment assigned by crossing a cutoff in a running variable: RegressionDiscontinuity.
  • Treatment intensity changes slope at a threshold rather than jumping in level: RegressionKink.
  • Treatment is endogenous but there is a credible instrument: InstrumentalVariable.
  • Observational binary treatment with measured confounders and overlap: InversePropensityWeighting.

Output Pattern

When you use this skill, return:

  • Recommended method: name the CausalPy experiment class.
  • Why it fits: tie the recommendation to data shape, assignment mechanism, and estimand.
  • Required columns/data layout: list the minimal data structure needed.
  • Key assumptions: state what must be credible for a causal interpretation.
  • Main risks: name obvious failure modes or sensitivity checks.
  • Next step: route to running-causalpy-experiments and the relevant method reference.

References

  • [Experiment decision guide](reference/experiment_decision_guide.md)

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。