ir-gravity-model
Installation
SKILL.md
International Relations — Gravity Model and GDELT Analysis
When to Use
Use this skill when you need to:
- Estimate the gravity equation of trade using PPML (Poisson Pseudo-Maximum Likelihood) to handle zero bilateral trade flows and heteroscedastic residuals
- Load and process COW (Correlates of War) bilateral trade data for directed dyad-year analysis
- Estimate the trade-creation effect of Regional Trade Agreements (RTAs) while controlling for multilateral resistance (importer and exporter fixed effects)
- Compare PPML vs. log-linear OLS and understand why OLS on log(trade) is biased with zeros
- Download and analyze GDELT bilateral event data (cooperation/conflict tone between country dyads)
- Integrate MID (Militarized Interstate Disputes) data for conflict-trade links
This skill assumes familiarity with fixed effects regression. For panel methods see the
comparative-politics skill; for conflict event data see the conflict-data skill.