$ ⌘K
// playbooks / batista-et-al-2025-brain-drain-gain · replicate_filipino_nurses_brain_gain

Replicate — Filipino Nurses Brain Gain (Abarcar & Theoharides 2024)

step_count: 10· runtime: 10-20 minutes

Reproducible analysis playbook for the headline brain-gain result in Batista et al. (2025): the 2000-2006 US nurse-visa expansion caused 9 new Filipino nurses to be licensed for every 1 nurse who emigrated. Step-by-step DID with data sources, units, and validation gates.

// pipeline
10 steps· DAG
01

Ingest All Data Sources

action ingest_dataseton fail: abort
config (1 key)
{
  "sources": [
    "cfo_emigration",
    "ched_enrollment",
    "prc_licensure",
    "us_h1c_visas",
    "psa_lfs"
  ]
}
02

Build Country-Year Panel (1990-2010)

action build_panelingest_data
config (2 keys)
{
  "key_columns": [
    "year",
    "emigrants_to_us",
    "new_nursing_enrollment",
    "new_licensed_nurses",
    "us_visa_cap",
    "tertiary_employment"
  ],
  "time_range": [
    1990,
    2010
  ]
}
03

Data Quality Gate

action data_quality_gatebuild_panelon fail: abort
config (3 keys)
{
  "max_missing_pct": 0.1,
  "min_observations": 18,
  "required_columns": [
    "emigrants_to_us",
    "new_nursing_enrollment",
    "new_licensed_nurses",
    "us_visa_cap"
  ]
}
04

Reproduce Figure 3 — Enrollment vs Visas

engine time_series_plotbuild_panel
config (4 keys)
{
  "annotations": [
    {
      "2000": "US H-1A nurse-visa expansion begins"
    },
    {
      "2006": "Visa expansion ends"
    }
  ],
  "x": "year",
  "y_left": "emigrants_to_us",
  "y_right": "new_nursing_enrollment"
}
expected results (1 key)
{
  "visual_pattern": "Enrollment closely tracks visa availability"
}
05

Parallel Trends Pre-Test

engine pretrend_testbuild_panel
config (4 keys)
{
  "outcome": "new_nursing_enrollment",
  "placebo_treatments": [
    1995,
    1997
  ],
  "pre_period": [
    1990,
    1999
  ],
  "treatment_year": 2000
}
expected results (1 key)
{
  "placebo_effects": "not_significant"
}
06

Main DID — New Licensed Nurses per Emigrant

engine difference_in_differencespre_trend_check
config (5 keys)
{
  "controls": [
    "gdp_per_capita_phl",
    "total_tertiary_enrollment"
  ],
  "outcome": "new_licensed_nurses",
  "time_var": "year",
  "treatment": "us_visa_cap_expansion",
  "unit_var": "nursing_program_type"
}
expected results (1 key)
{
  "treatment_effect": {
    "direction": "positive",
    "magnitude_per_emigrant": 9,
    "rationale": "Per Abarcar \u0026 Theoharides (2024): 9 new licensees per 1 emigrant"
  }
}
07

Heterogeneity — Private vs Public Nursing Programs

engine subgroup_diddid_main_estimate
config (3 keys)
{
  "groups": [
    "private",
    "public"
  ],
  "moderator": "program_ownership_type",
  "outcome": "new_nursing_enrollment"
}
expected results (2 keys)
{
  "private": {
    "direction": "positive",
    "magnitude": "larger"
  },
  "public": {
    "direction": "positive",
    "magnitude": "smaller"
  }
}
08

Net Stock Calculation (2000-2006)

engine stock_accountingdid_main_estimate
config (3 keys)
{
  "inflows": "new_licensed_nurses",
  "outflows": "emigrants_to_us",
  "window": [
    2000,
    2006
  ]
}
expected results (1 key)
{
  "net_change_in_stock": {
    "direction": "positive",
    "rationale": "Review reports +86,940 net nurses (113,775 licensed - 26,835 emigrated) over 2000-2006",
    "target_value": 86940,
    "tolerance": 0.1
  }
}
09

Robustness Checks

engine robustness_batterydid_main_estimate
config (1 key)
{
  "checks": [
    {
      "alternative_treatment_year": 2001
    },
    {
      "placebo_outcome": "engineering_enrollment"
    },
    {
      "leave_one_out_provinces": true
    },
    {
      "weighted_by_pre_period_enrollment": true
    }
  ]
}
// from pax
High-Skilled International Migration & Origin-Country Effects
// engines
engine.subgroup_didengine.robustness_batteryengine.pretrend_testengine.difference_in_differencesengine.time_series_plotengine.synthesis_reportengine.stock_accounting
// note
step bodies extracted from the .pax archive at build time. download the parent pax for the full yaml.
[ download batista-et-al-2025-brain-drain-gain.pax.tar.gz ]