Data Analysis (jbf-data-analysis)
When to trigger
- You are constructing the sample, variables, or estimation pipeline
- Results need robustness, heterogeneity, mechanism, or economic-magnitude checks
- Proprietary finance datasets require a reproducible but non-redistributable workflow
Data construction
- Document every source: CRSP, Compustat, Call Reports, BankFocus, Dealscan,
TRACE, OptionMetrics, FDIC, SEC EDGAR, FRED, or private hand-collected data.
- Define the unit of observation: bank-quarter, firm-year, loan facility,
security-day, country-year, event-firm, etc.
- Show sample attrition: raw data, filters, merges, missing variables,
winsorization, final sample.
- Name variable construction rules: scaling, deflation, lagging, exchange
rates, identifiers, and industry/bank classifications.
- Separate proprietary raw data from shareable code so the replication
package can be legal and useful.
Estimation checklist
- Use fixed effects and clustering that match the design.
- Report economic magnitudes in finance units: basis points, percentage of assets,
capital ratio points, loan-spread basis points, abnormal returns, default odds.
- Provide robustness over winsorization, sample windows, variable definitions, and
alternative outcome measures.
- For event studies, report CAR/BHAR windows and benchmark choices.
- For bank panels, test sensitivity to crisis periods, large banks, mergers, and
regulatory regime changes.
Reproducibility
- Keep a single
run_all entry point that regenerates tables and figures.
- Pin software versions and random seeds.
- Store intermediate files only when they materially reduce runtime; document how
they are made.
- Prepare a data-access README for licensed sources.
Bank-panel stress checks
For bank/intermediation panels, add targeted checks for:
- crisis-period sensitivity;
- large-bank or systemically important institution influence;
- mergers and identifier breaks;
- regulatory regime changes;
- balance-sheet scaling and winsorization choices.
Report which checks are main-text, appendix, or archive-only.
Dataset-to-question matrix
| Source |
Unit |
JBF expectation |
Caveat to pre-empt |
| US Call Reports / FR Y-9C |
bank- or BHC-quarter |
merger-adjusted series; top-holder aggregation choice stated |
identifier breaks across RSSD changes |
| Orbis Bank Focus (ex-BankScope) |
bank-year, cross-country |
consolidation-code filters documented |
duplicated statements across consolidation levels |
| DealScan |
loan facility |
facility vs package level stated; lead-arranger roles defined |
borrower link tables need documented match rates |
| FDIC SDI / failure data |
bank-quarter |
survivorship handling for failed and acquired banks |
de novo entrants and charter conversions |
| Cross-country regulation surveys |
country-wave |
survey-wave timing matched to the outcome window |
self-reported regulation measures |
Worked sample build (illustrative)
Target: bank-quarter panel for a liquidity-regulation study, 2005Q1–2019Q4.
- Raw Call Reports: 612,000 bank-quarters (illustrative count).
- Drop de novo banks (<5 years), foreign branches, and banks under $100 million in assets: −118,000.
- Merger-adjust around RSSD changes; drop quarters with >50% asset jumps: −24,000.
- Require non-missing CET1, loans, and core deposits; winsorize ratios at 1/99: final ≈465,000.
- Put exactly this attrition table in the appendix — JBF referees read it before the regressions.
Pipeline skeleton
01_pull_callreports.* # raw downloads, data vintage recorded
02_merger_adjust.* # RSSD link table + asset-jump audit
03_build_panel.* # ratios, lags, winsorization flags
04_baseline.* # FE + clustering per jbf-identification-strategy
05_robustness.* # crisis splits, large-bank drops, alt definitions
06_export_exhibits.* # tables/figures numbered as in the manuscript
Economic-magnitude benchmarks for bank panels
- Loan growth: report effects relative to sample-mean quarterly growth, not only the raw coefficient.
- Capital: percentage points of CET1, anchored to the regulatory minimum or buffer.
- Spreads: basis points relative to the mean all-in-drawn spread.
- Risk: change in Z-score or NPL ratio relative to the cross-sectional standard deviation.
- Funding: percentage points of the core-deposit or wholesale-funding share.
Referee data pushbacks
- "Are results a 2008–09 artifact?" → re-estimate excluding 2007Q3–2009Q4 and report both estimates.
- "Bank Focus duplicates inflate your N." → show the consolidation-filter step with before/after counts.
- "DealScan spreads ignore fees." → use the all-in-drawn spread and say so in the variable definitions.
- "Winsorizing at 1/99 hides outliers." → also show 2.5/97.5 and trimmed samples in an appendix column.
- "Results hinge on the largest banks." → report with and without the systemically important institutions.
Execution bridge (StatsPAI / Stata MCP)
Run the battery, don't just enumerate it. Full map:
execution-with-mcp. JBF is empirical banking/finance — corporate/bank causal designs around regulation and shocks.
- Many outcomes / specifications:
romano_wolf (step-down FWER) or benjamini_hochberg.
- OVB sensitivity:
oster_delta / sensemakr.
- Inference:
wild_cluster_bootstrap (few clusters), twoway_cluster / conley.
- Re-fit off one handle:
audit_result(result_id) lists missing checks + the exact
suggest_function for each.
- Exhibits:
etable / did_summary_to_latex from the handle — no retyped numbers.
Decisive checks in the body, exhaustive battery in the appendix.
JF execution walkthrough.
Output format
[Sample] unit + period + observations
[Data sources] ...
[Key variables] ...
[Main estimator] ...
[Robustness queue] ...
[Reproducibility gaps] ...
[Next step] jbf-tables-figures
Source: brycewang-stanford/Awesome-Journal-Skills → Journal-of-Banking-and-Finance-Skills/skills/jbf-data-analysis/SKILL.md
1---2name: jbf-data-analysis3description: "Use when building or auditing the empirical data and estimation pipeline for a Journal of Banking & Finance manuscript, including financial datasets, bank panels, winsorization, fixed effects, robustness, and reproducible scripts."4category: business-and-finance5source_repo: brycewang-stanford/Awesome-Journal-Skills6source_path: "Journal-of-Banking-and-Finance-Skills/skills/jbf-data-analysis/SKILL.md"7source_url: https://github.com/brycewang-stanford/Awesome-Journal-Skills/blob/HEAD/Journal-of-Banking-and-Finance-Skills/skills/jbf-data-analysis/SKILL.md8metadata:9 source: https://skillmd.com/skills/thedixitjain/jbf-data-analysis10---111213# Data Analysis (jbf-data-analysis)1415## When to trigger1617- You are constructing the sample, variables, or estimation pipeline18- Results need robustness, heterogeneity, mechanism, or economic-magnitude checks19- Proprietary finance datasets require a reproducible but non-redistributable workflow2021## Data construction22231. **Document every source**: CRSP, Compustat, Call Reports, BankFocus, Dealscan,24 TRACE, OptionMetrics, FDIC, SEC EDGAR, FRED, or private hand-collected data.252. **Define the unit of observation**: bank-quarter, firm-year, loan facility,26 security-day, country-year, event-firm, etc.273. **Show sample attrition**: raw data, filters, merges, missing variables,28 winsorization, final sample.294. **Name variable construction rules**: scaling, deflation, lagging, exchange30 rates, identifiers, and industry/bank classifications.315. **Separate proprietary raw data from shareable code** so the replication32 package can be legal and useful.3334## Estimation checklist3536- Use fixed effects and clustering that match the design.37- Report economic magnitudes in finance units: basis points, percentage of assets,38 capital ratio points, loan-spread basis points, abnormal returns, default odds.39- Provide robustness over winsorization, sample windows, variable definitions, and40 alternative outcome measures.41- For event studies, report CAR/BHAR windows and benchmark choices.42- For bank panels, test sensitivity to crisis periods, large banks, mergers, and43 regulatory regime changes.4445## Reproducibility4647- Keep a single `run_all` entry point that regenerates tables and figures.48- Pin software versions and random seeds.49- Store intermediate files only when they materially reduce runtime; document how50 they are made.51- Prepare a data-access README for licensed sources.5253## Bank-panel stress checks5455For bank/intermediation panels, add targeted checks for:5657- crisis-period sensitivity;58- large-bank or systemically important institution influence;59- mergers and identifier breaks;60- regulatory regime changes;61- balance-sheet scaling and winsorization choices.6263Report which checks are main-text, appendix, or archive-only.6465## Dataset-to-question matrix6667| Source | Unit | JBF expectation | Caveat to pre-empt |68| --- | --- | --- | --- |69| US Call Reports / FR Y-9C | bank- or BHC-quarter | merger-adjusted series; top-holder aggregation choice stated | identifier breaks across RSSD changes |70| Orbis Bank Focus (ex-BankScope) | bank-year, cross-country | consolidation-code filters documented | duplicated statements across consolidation levels |71| DealScan | loan facility | facility vs package level stated; lead-arranger roles defined | borrower link tables need documented match rates |72| FDIC SDI / failure data | bank-quarter | survivorship handling for failed and acquired banks | de novo entrants and charter conversions |73| Cross-country regulation surveys | country-wave | survey-wave timing matched to the outcome window | self-reported regulation measures |7475## Worked sample build (illustrative)7677Target: bank-quarter panel for a liquidity-regulation study, 2005Q1–2019Q4.7879- Raw Call Reports: 612,000 bank-quarters (illustrative count).80- Drop de novo banks (<5 years), foreign branches, and banks under $100 million in assets: −118,000.81- Merger-adjust around RSSD changes; drop quarters with >50% asset jumps: −24,000.82- Require non-missing CET1, loans, and core deposits; winsorize ratios at 1/99: final ≈465,000.83- Put exactly this attrition table in the appendix — JBF referees read it before the regressions.8485## Pipeline skeleton8687```text8801_pull_callreports.* # raw downloads, data vintage recorded8902_merger_adjust.* # RSSD link table + asset-jump audit9003_build_panel.* # ratios, lags, winsorization flags9104_baseline.* # FE + clustering per jbf-identification-strategy9205_robustness.* # crisis splits, large-bank drops, alt definitions9306_export_exhibits.* # tables/figures numbered as in the manuscript94```9596## Economic-magnitude benchmarks for bank panels9798- Loan growth: report effects relative to sample-mean quarterly growth, not only the raw coefficient.99- Capital: percentage points of CET1, anchored to the regulatory minimum or buffer.100- Spreads: basis points relative to the mean all-in-drawn spread.101- Risk: change in Z-score or NPL ratio relative to the cross-sectional standard deviation.102- Funding: percentage points of the core-deposit or wholesale-funding share.103104## Referee data pushbacks105106- "Are results a 2008–09 artifact?" → re-estimate excluding 2007Q3–2009Q4 and report both estimates.107- "Bank Focus duplicates inflate your N." → show the consolidation-filter step with before/after counts.108- "DealScan spreads ignore fees." → use the all-in-drawn spread and say so in the variable definitions.109- "Winsorizing at 1/99 hides outliers." → also show 2.5/97.5 and trimmed samples in an appendix column.110- "Results hinge on the largest banks." → report with and without the systemically important institutions.111112## Execution bridge (StatsPAI / Stata MCP)113114Run the battery, don't just enumerate it. Full map:115[`execution-with-mcp`](../../../shared-resources/empirical-methods/execution-with-mcp.md). JBF is empirical banking/finance — corporate/bank causal designs around regulation and shocks.116117- **Many outcomes / specifications:** `romano_wolf` (step-down FWER) or `benjamini_hochberg`.118- **OVB sensitivity:** `oster_delta` / `sensemakr`.119- **Inference:** `wild_cluster_bootstrap` (few clusters), `twoway_cluster` / `conley`.120- **Re-fit off one handle:** `audit_result(result_id)` lists missing checks + the exact121 `suggest_function` for each.122- **Exhibits:** `etable` / `did_summary_to_latex` from the handle — no retyped numbers.123124Decisive checks in the body, exhaustive battery in the appendix.125[JF execution walkthrough](../../../Journal-of-Finance-Skills/resources/worked-examples/02-execution-walkthrough.md).126## Output format127128```text129[Sample] unit + period + observations130[Data sources] ...131[Key variables] ...132[Main estimator] ...133[Robustness queue] ...134[Reproducibility gaps] ...135[Next step] jbf-tables-figures136```137138---139140**Source:** [`brycewang-stanford/Awesome-Journal-Skills`](https://github.com/brycewang-stanford/Awesome-Journal-Skills) → `Journal-of-Banking-and-Finance-Skills/skills/jbf-data-analysis/SKILL.md`