Replication package — tables (Stata, portable paths)
==================================================

This folder generates the TABLES used in the paper (and the online appendix tables).

The do-files are written to be *portable*: all paths are defined relative to the
   current Stata working directory (the project root for tables).

--------------------------------------------------
1) Expected folder structure
--------------------------------------------------

Project root (THIS folder) should contain:

tables_root/
  00_setup.do
  master.do
  do_Table_4_portable.do
  do_Table_5_portable.do
  ...
  data/
      Workable_dataset.dta
  output/                 (created automatically if missing)
      tables/             (created automatically if missing)

Path conventions (defined in 00_setup.do):
  ROOT = `c(pwd)`
  DATA = "$ROOT/data"   (or "$ROOT/Data" as a fallback)
  OUT  = "$ROOT/output/tables"

--------------------------------------------------
2) How to replicate all tables
--------------------------------------------------

1) Open Stata
2) Set working directory to this folder (tables_root), e.g.:
       cd "…/Do files/Tables"
3) Run:
       do master.do

Outputs will be written to:
    output/tables/

A full log is also saved:
    output/tables/replication_tables.log

--------------------------------------------------
3) Software requirements
--------------------------------------------------

- Stata 16+ recommended (earlier versions may work, but not tested here).
- Some regression-table exports use `esttab` (from the `estout` package).
  If missing, install in Stata once:
      ssc install estout, replace

--------------------------------------------------
4) If replication fails
--------------------------------------------------

Please include:
  - the file: output/tables/replication_tables.log
  - the output of:
        display c(pwd)
        dir
        dir data
        dir output
