Stata Panel Data !!exclusive!!
| Variable | Description | |----------|-------------| | country | Country ID (1–30) | | year | Year (2000–2020) | | gdp | Log GDP per capita | | fdi | FDI inflows (% GDP) | | trade | Trade (% GDP) | | gcf | Gross capital formation (% GDP) |
Unbalanced panels are common (e.g., firms that enter or exit the sample). Stata handles them gracefully, but you must understand the implications for estimation. stata panel data
Fixed effects xtreg gdp fdi trade gcf, fe eststo fe fe eststo fe