본문으로 건너뛰기
cccskills
무료GitHub에 공개

econometrics-check

Audit causal inference in a sewage and house prices study by comparing manuscript claims with R code. Review design assumptions, statistical uncertainty, and robustness, then produce a prioritized report with concrete fixes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Comparing manuscript methods with R analysis code
  • Auditing assumptions behind causal inference
  • Checking standard errors and multiple testing
  • Prioritizing design flaws and robustness checks

포함된 파일(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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

a1

무료

Turn a broad research idea into clear, testable questions. Compare familiar and less conventional approaches, structure the selected question around its population and methods, and assess variables, feasibility, and potential theoretical contributions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Turn a research topic into testable questions
  • Narrow an overly broad research question
  • Compare alternative research angles
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

a2

무료

Helps build a research framework by comparing theories, mapping relationships between variables, and deriving testable hypotheses. Explores less conventional options, examines weaknesses and competing explanations, and produces diagrams with anticipated reviewer objections.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing theories for a research question
  • Deriving hypotheses from relationships between variables
  • Examining weaknesses and anticipated reviewer objections
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

a5

무료

Clarify the philosophical assumptions behind a research project and check whether they fit the proposed methods. Get a reasoned research stance, draft proposal wording, and guidance for explaining how the researcher's background and values shape the study.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Clarifying philosophical foundations for a research proposal
  • Explaining why the chosen research methods fit the study
  • Drafting a statement about the researcher's position
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

Plan and draft academic papers through specialized agent roles covering literature, arguments, citations, and review. Get chapter guidance, revision roadmaps, Traditional Chinese and English abstracts, and documents formatted as LaTeX, DOCX, PDF, or Markdown.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Planning a paper chapter by chapter
  • Drafting a paper from research materials
  • Turning reviewer comments into a revision roadmap
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

Turn a detailed outline into a philosophy or interdisciplinary manuscript. Draft chapters with repeated quality reviews, check terminology and arguments across sections, and prepare the manuscript, evaluation reports, abstract, and metadata for submission.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Draft a full paper from a detailed outline
  • Review argument and citation quality chapter by chapter
  • Check terminology and argument flow across chapters
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

Simulate academic peer review through five reviewer roles tailored to the paper's field. Receive separate critiques, an editorial decision, and a prioritized revision roadmap, or check whether a revised manuscript addresses earlier comments.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review a manuscript before journal submission
  • Examine research methods and statistical validity
  • Challenge core arguments and alternative explanations
brycewang-stanford/Auto-Empirical-Research-Skills4.7천2026년 10월 20일 업데이트

brycewang-stanford의 스킬 모두 보기

이 스킬의 문제 신고