Skip to main content

Worked example: FDI and economic growth in Vietnam (ARDL)

This page illustrates EcoLab's entire 5-step research workflow through a topic familiar to graduate students and PhD candidates in economics: the impact of foreign direct investment (FDI) on Vietnam's economic growth. The goal is to show how to go from a research question to a report with replication code — not to publish official empirical findings. The figures in the results section are format illustrations.

Summary: with a national time series for 1990–2023 and variables of mixed I(0)/I(1) order of integration, the ARDL model is a suitable choice to estimate both the long-run and short-run relationships between FDI and growth.


Step 1 — Ideation

  • Research question: Does FDI promote Vietnam's economic growth in the long run, and how fast does the economy adjust to equilibrium?
  • Context: Vietnam has attracted FDI strongly since the 1990s; the FDI–growth relationship is still debated in terms of sign and magnitude.
  • Intended contribution: test FDI–growth cointegration for an updated period, controlling for trade openness and inflation.

In the Ideation module, enter keywords ("FDI", "economic growth", "Vietnam", "ARDL") so the system suggests questions, gaps and preliminary variables.


Step 2 — Literature Review

In the Literature Review module, EcoLab finds and synthesizes related papers, standardizes citations (APA/Harvard…) and clarifies:

  • Theoretical framework: endogenous growth theory, the technology-spillover role of FDI.
  • Gap: a lack of updated ARDL studies using recent Vietnamese data with full controls.
  • Proposed variables: the dependent and explanatory/control variables (see Step 3).

Step 3 — Data Collection

VariableSymbolMeasurementSource
GDP growthgrowthAnnual % change in real GDPWorld Bank WDI; GSO Vietnam
FDI intensityfdiNet FDI / GDP (%)World Bank WDI; EcoData
Trade opennessopen(Exports + Imports)/GDP (%)World Bank WDI; Vietnam Customs
InflationinfAnnual % change in CPIWorld Bank WDI; GSO
  • Period: 1990–2023 (annual data).
  • In EcoLab, connect EcoData or public sources to extract, merge by year, clean, and view descriptive statistics before estimation.

Step 4 — Modeling

  1. Unit-root tests (ADF/PP/KPSS) for each variable to confirm no variable is I(2) — the condition for using ARDL.
  2. Choose the Time Series group → ARDL; set growth as the dependent variable and fdi, open, inf as regressors.
  3. Let the system pick lags by AIC/BIC.
  4. Run the bounds test to conclude on cointegration; review the long-run coefficients and the ECM.

Illustrative results (format — not real results):

ComponentCoefficientStd. errorp-value
Long run: fdi0.420.150.012
Long run: open0.080.040.061
Long run: inf−0.050.030.089
ECM (α\alpha)−0.550.130.001
Bounds F-stat6.10above upper I(1) boundcointegrated

Sample interpretation: a negative, significant ECM coefficient confirms a long-run relationship; FDI has a positive long-run effect on growth in this illustrative specification.

* --- FDI & Growth: ARDL ---
tsset year

* Estimate ARDL with automatic lag selection
ardl growth fdi open inf, lags(. 2 2 2)

* Bounds test for cointegration
estat btest

* Error Correction Model
ardl growth fdi open inf, lags(. 2 2 2) ec

* Diagnostics
estat bgodfrey
estat hettest

Step 5 — Reporting

In the Reporting module, EcoLab produces an academic draft (APA 7th, Chicago, Harvard, IEEE or MLA) including: introduction, literature review, data & methodology, results, discussion, and a replication-code appendix (Stata/R/Python). You download it and continue refining it for your journal or committee.


Reproducibility and verification

Every estimation step is generated by EcoLab as complete source code in Stata, R or Python under the Replication Code tab. You can re-run it independently on your local machine to verify, ensuring the results are transparent and reproducible — a core requirement for academic publishing.


Video tutorial

Video Tutorial: Running ARDL in EcoLab

See also