EAP Tax Strategy

If you only want to read the outputs, skip this guide — the rendered PDFs and HTML are stand-alone in Downloads. This page is for someone who wants to re-run the analysis, change a parameter, or extend the dataset.

What you need

ToolVersionWhy
R4.3 or laterAll analytical pipelines
Quarto1.4 or laterRenders the deck (reveal.js)
TeX Live (or MacTeX / TinyTeX)2023 or laterCompiles the Beamer slides (.tex → .pdf)

R packages

Install in R with install.packages(c("here", "dplyr", ...)).

Folder layout for re-running

The R scripts expect the original repository structure, where the project root contains:

<project_root>/
├── data/raw/               ← input CSVs and XLSX
├── data/processed/         ← processed CSVs
├── segment_1_tax_advisory_history/
│   ├── src/R/              ← scripts
│   └── output/             ← figures, tables, RDS cache
├── segment_2_taxation_trends/
├── segment_3_inequality/
└── segment_4_tax_mix_future/

This share package is reorganised for reading. If you want to run the code, recreate the original layout, or clone the original Git repository at github.com/panosni/eap_tax_strategy. The structure there is ready to run.

Re-running the four sections

Each section has its own pipeline. Run them in order — Sections 2 and 4 depend on Section 1's outputs.

Section 1 — Advisory History

Rscript segment_1_tax_advisory_history/src/R/00_run_all.R

Runs 01_load.R02_clean.R03_analyze.R04_tables.R05_figures.R, then 06_current_engagements.R (FY2025 engagement map) and 07_regional_comparison.R (cross-region DPF comparator).

Section 2 — Revenue Trajectories

Rscript segment_2_taxation_trends/src/R/01_load.R
Rscript segment_2_taxation_trends/src/R/02_clean.R
Rscript segment_2_taxation_trends/src/R/03_analyze.R
Rscript segment_2_taxation_trends/src/R/06_figures.R
Rscript segment_2_taxation_trends/src/R/08_alignment_revisit.R

The numbered scripts under 04_* (econometrics, event-study diagnostics, synthetic control) are exploratory and not used in the headline outputs.

Section 3 — Inequality

Rscript segment_3_inequality/src/R/01_load.R
Rscript segment_3_inequality/src/R/02_clean.R
Rscript segment_3_inequality/src/R/03_analyze.R
Rscript segment_3_inequality/src/R/04_tables.R
Rscript segment_3_inequality/src/R/05_figures.R
Rscript segment_3_inequality/src/R/06_post_tax.R
Rscript segment_3_inequality/src/R/07_figures_part2.R

Note the Pacific Inequality Gap caveat (see the note): WID does not publish country-specific inequality data for 7 of the 17 EAP economies. The country-level analysis is therefore on EAP-10.

Section 4 — Structural Indicators

Rscript segment_4_tax_mix_future/src/R/01_load.R
Rscript segment_4_tax_mix_future/src/R/02_clean.R
Rscript segment_4_tax_mix_future/src/R/03_structural_readiness.R
Rscript segment_4_tax_mix_future/src/R/04_sfa.R           # exploratory annex
Rscript segment_4_tax_mix_future/src/R/05_scenarios.R     # exploratory annex
Rscript segment_4_tax_mix_future/src/R/06_priorities.R    # exploratory annex
Rscript segment_4_tax_mix_future/src/R/07_synthesis.R
Rscript segment_4_tax_mix_future/src/R/08_tables.R
Rscript segment_4_tax_mix_future/src/R/09_figures.R

03_structural_readiness.R produces the headline combined-score composite. Scripts 0406 are exploratory (frontier analysis, 2030 scenarios, country priorities) — kept for transparency but not promoted to the main narrative.

Re-rendering the deck

Deck — reveal.js HTML

quarto render presentations/eap_tax_strategy_deck.qmd --to revealjs

Output: presentations/eap_tax_strategy_deck.html.

Deck — Beamer PDF

Two flavours:

# With \pause animations (for live presenting)
pdflatex presentations/eap_tax_strategy_deck.tex

# No animations (for printing / sharing)
pdflatex presentations/eap_tax_strategy_deck_handout.tex

The handout .tex is identical to the deck .tex except for one option: \documentclass[8pt,handout]{beamer} collapses every \pause overlay onto a single page.

Datasets

FileDescription
eap_tax_master_dataset.csv125 advisory recommendations, hand-coded. The canonical full record.
eap_tax_2015_2025.csv105-row processed subset, FY2015–FY2025. The figures in this package use this subset.
DPAD_database_up_to_FY24.xlsxCross-region comparator of tax-themed DPF prior actions across all six WB regions.
wb_current_engagements_2026.csvFY2025 active engagement pipeline.

If something doesn't work

  1. Path errors — the R scripts use here::here() which finds the project root by looking for a .Rproj file or a .git directory. If you copied the code out of the original repo without those markers, create an empty .here file at your new project root, or open R inside the project directory before running.
  2. Missing packages — if library(X) fails, install with install.packages("X").
  3. Quarto won't render — check quarto --version is 1.4+. Older versions don't support some of the YAML features used.
  4. Beamer compilation fails — make sure the Metropolis theme is installed: tlmgr install beamertheme-metropolis.