本文へ移動
cccskills
無料GitHub で公開

econometrics-check

Causal inference design audit for the sewage-house-prices project. Runs a 4-phase review (claim identification, design validity, inference, polish) covering hedonic pricing, repeat sales, long difference, DiD/event studies, upstream/downstream, and dry spill strategies. This skill should be used when asked to "check the econometrics", "audit the identification", "review the strategy", or when verifying that code matches the stated design.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Econometrics Check

Run a 4-phase causal inference audit on the target file(s) for the sewage-house-prices project.

Input: $ARGUMENTS — a .tex file, .R script, directory path, or all.


Project-Specific Context

Identification Strategies in This Paper

  1. Hedonic regressions — Cross-sectional: log(price) on spill count/hours (continuous + bins), LSOA FE, heteroskedasticity-robust SE
  2. Repeat sales — Within-property variation (Palmquist 1982), house fixed effects
  3. Long difference — 250m grid-level changes, weighted/unweighted, all/exposed grids
  4. News/media DiD — Google Trends and LexisNexis media coverage as treatment
  5. Upstream/downstream — Directional spillover via PostGIS river network topology
  6. Dry spills — Spills occurring without rainfall as identification variation (rainfall threshold-based)

Key Variables

  • Outcome: log(price) for sales, log(rent) for rentals
  • Treatment: spill_count, spill_hrs, spill_count_daily_avg, spill_hrs_daily_avg
  • Geography: n_spill_sites within radius, min_dist / mean_dist
  • Radii: 250m, 500m, 1000m, 2000m, 5000m, 10000m
  • Fixed effects: LSOA (lsoa), MSOA (msoa), year-quarter
  • SE: heteroskedasticity-robust via fixest::feols(vcov = "hetero")
  • Counting: 12/24-hour methodology in spill_aggregation_utils.R

File Locations

  • Manuscript: docs/overleaf/*.tex
  • Analysis scripts: scripts/R/09_analysis/
  • Utility functions: scripts/R/utils/
  • Pipeline scripts: scripts/R/01_data_ingestion/ through scripts/R/06_analysis_datasets/

Workflow

Step 1: Parse Input

Determine target from $ARGUMENTS:

  • .tex file: Review manuscript section for identification claims, assumption statements, estimation descriptions
  • .R file: Review analysis script for code-theory alignment, package usage, SE computation
  • Directory (e.g. scripts/R/09_analysis/02_hedonic/): Review all scripts in that approach
  • all: Review docs/overleaf/*.tex and scripts/R/09_analysis/
  • No argument: Review all manuscript sections and analysis scripts

Step 2: Context Gathering

Before auditing:

  1. Read the target file(s)
  2. Read docs/overleaf/refs.bib for citation availability
  3. If reviewing scripts: read corresponding manuscript section for code-theory alignment
  4. If reviewing manuscript: read corresponding analysis scripts for accuracy
  5. Read scripts/R/utils/spill_aggregation_utils.R for counting methodology

Step 3: Run 4-Phase Review

Phase 1: Claim Identification

  • What design is being used? (hedonic / repeat sales / long diff / DiD / upstream-downstream / dry spill)
  • What is the estimand? (ATT / ATE / LATE)
  • What is the treatment? (spill count, spill hours, distance, media coverage)
  • What is the comparison group?

Phase 2: Core Design Validity

Design-specific assumption checks:

Hedonic:

  • Selection on observables assumption — are LSOA FE sufficient?
  • Omitted variable bias from neighbourhood sorting
  • Measurement error in spill count/hours

Repeat sales:

  • Within-property variation correctly specified
  • Time-varying confounders addressed
  • Property-level fixed effects properly implemented

Long difference:

  • Grid construction and assignment correct
  • Weighted vs unweighted justified
  • Pre-period balance

DiD / Event studies:

  • Parallel trends assumption stated and tested
  • Treatment timing correctly identified
  • Staggered adoption issues addressed (if applicable)

Upstream/downstream:

  • River network topology correctly implemented
  • Directionality assumption valid
  • Spillover definitions consistent

Dry spills:

  • Rainfall threshold justified
  • Dry vs wet spill definition consistent with data pipeline
  • Selection into dry spills addressed

Phase 3: Inference

  • SE computation: heteroskedasticity-robust applied correctly
  • Multiple testing: across radii, specifications, outcomes
  • Code-theory alignment: does the R code implement what the paper claims?

Phase 4: Polish & Completeness

  • Robustness checks: radius sensitivity, time period variation, specification changes
  • Sensitivity analysis: how sensitive are results to key assumptions?
  • Citation fidelity: are methodological references accurate?

Early stopping: If Phase 2 finds CRITICAL issues, focus there.

Step 4: Present Summary

## Econometrics Audit: [target]
**Date:** YYYY-MM-DD

### Design(s) Reviewed
- [List designs audited]

### Overall Assessment: [SOUND / MINOR ISSUES / MAJOR ISSUES / CRITICAL ERRORS]

### Blocking Issues (CRITICAL)
1. ...

### Priority Action List
1. ...
2. ...
3. ...

### Positive Findings
- ...

Save report to output/log/econometrics_check_[target].md.


Principles

  • Design-opinionated, package-flexible. Validate the econometric logic, not just the R packages.
  • Cross-reference code and paper. Flag any mismatch between what the manuscript says and what the script does.
  • Actionable output. Every issue must have a concrete fix.
  • Proportional. Not every approach needs every robustness check.
  • Sequential phases. Never skip to robustness before verifying the core design holds.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

a1

無料

VS-Enhanced Research Question Refiner - Prevents Mode Collapse and derives differentiated research questions Enhanced VS 3-Phase process: Modal question avoidance, alternatives presentation, differentiated RQ recommendation Use when: refining research ideas, formulating research questions, clarifying scope Triggers: research question, 연구 질문, PICO, SPIDER, research idea

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

a2

無料

VS-Enhanced Theoretical Framework Architect with Critique & Visualization Full VS 5-Phase process: Modal theory avoidance, Long-tail exploration, differentiated framework presentation Absorbed A3 (Devil's Advocate) critique and A6 (Conceptual Framework Visualizer) capabilities Use when: building theoretical foundations, designing conceptual models, deriving hypotheses, critiquing frameworks, visualizing models Triggers: theoretical framework, 이론적 프레임워크, conceptual model, 개념적 모형, hypothesis derivation, critique, devil's advocate, 반론, visualization, diagram

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

a5

無料

Agent A5 - Paradigm & Worldview Advisor - Philosophical foundations for research design. Covers ontology, epistemology, axiology, and methodology alignment. Use when: establishing philosophical foundations, justifying methodological choices, writing positionality statements Triggers: paradigm, 패러다임, ontology, epistemology, worldview, 세계관, philosophical foundations, 철학적 기초

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

Academic paper writing skill with 12-agent pipeline. v2.5: Style Calibration (learn author's writing voice from past papers) + Writing Quality Check (writing quality checklist for natural prose). Supports IMRaD, literature review, theoretical, case study, policy brief, and conference paper structures. APA 7.0 (default), Chicago, MLA, IEEE, Vancouver citation formats. Bilingual abstracts (zh-TW + EN). Multi-format output (LaTeX, DOCX, PDF, Markdown). Triggers on: write paper, academic paper, paper outline, write abstract, revise paper, check citations, convert to LaTeX, guide my paper, parse reviews, revision roadmap, 寫論文, 學術論文, 論文大綱, 寫摘要, 修改論文, 檢查引用, 引導我寫論文, 帶我規劃論文, 逐章規劃, 論文架構, 審查意見, 修訂路線圖.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want to: (1) write a paper from a detailed outline, (2) ensure quality control during writing, (3) maintain consistency across chapters, (4) prepare a submission-ready manuscript, or (5) systematically execute a planned paper. Triggered by phrases like 'write the paper from this outline,' 'compose the full manuscript,' 'execute the outline,' or when users have completed strategic planning (academic-paper-strategist skill) and are ready to write. Takes optimized outline as input; outputs complete manuscript with iterative quality checks.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Simulates 5 independent reviewers (EIC + 3 peer reviewers + Devil's Advocate) with field-specific expertise. Supports full review, re-review (verification), quick assessment, methodology focus, and Socratic guided modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5982026年10月12日 更新

brycewang-stanford のスキルをすべて見る

このスキルの問題を報告する