The dataset viewer is not available for this split.
Error code: ResponseNotFound
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Note on the Stage-1 sample (2026-09-22; re-run at the shipped σ cap 2026-10-26). σ is estimated
on the untrimmed unit-value panel, while γ (Stage 2) drops differenced observations with
|Δ ln p| ≥ 2. This was tested, not assumed: at the shipped σ cap of 50, on a random 3% subsample
of cells whose untrimmed estimates reproduce the published σ, applying the same rule inside the
Feenstra stage raises the median σ from 2.50 to 3.78 and moves 85% of cells by more than 10%,
and a threshold curve shows σ rising monotonically as the rule tightens (3.04 / 3.78 / 4.72 at
3.0 / 2.0 / 1.5) with no plateau, while the share of cells with a finite σ standard error falls
from 95.0% to 91.1%. The September runs on v0.7.2's Stage 1 at a cap of 10 showed the same
curve (3.00 / 3.64 / 4.54; 2.46 → 3.73 on the full universe at 2.0). The rule removes
identifying price variance rather than a distinct outlier population, so no threshold is
privileged and none is shipped; the trimmed estimates are a robustness result
(docs/methodology/sample_rule_decision.md). Comparisons with σ estimated under another
cleaning rule must say which rule. Addendum 2026-11-09 (patch 0163): since v0.12.0 this note
describes the Stage-1 table and the sigma_stage1 column only. The published sigma is the
Stage-2 update, re-solved from the import block of the Stage-2 panel, and that panel carries
the |Δ ln p| ≥ 2 rule; how the updated σ moves with the threshold has not been measured.
Measured since (2026-11-11, patch 0166): see "Measurements" below; on the full panel, the v0.13.0 entry.
Corrections (2026-11-09, patch 0163; no estimate changes). (1) The v0.12.0 entry says
gamma_se_total is populated on the 4,646 rows that keep a Stage-1 σ. It is populated on
no row: the column is written only where sigma_robust is TRUE, which no row of v0.12.0
is, and those 4,646 rows belong to cells with no fitted exporter — imputed rows, with no
standard error of any kind. sigma_se and dgamma_dsigma are NA on every updated row.
(2) In the v0.12.0 product table share_cells_own_sigma still counts the cells labelled
estimated — since v0.12.0 the few cells that keep a Stage-1 σ — and is 0 for most products
(median 0, 90th percentile 0.014), although 97.0% of rows carry a σ of their own cell;
analysis/product_summary.R counts the cells whose σ is their own value since patch 0163,
and v0.12.1 ships the file rebuilt under it. (3) The v0.12.0 Stage-2b summary files
(…_summary.txt / .rds) print sigma_V=2.880, gamma_V=0.690 and starting values
2.880 / 0.690 in their CONFIGURATION block. Those are the library's placeholders, not values
a Stage-2 pass used: the final pass's σ_V default was the level σ (2.678) and its γ_V default
and γ starting value the median good-level prior (a number the v0.12.0 pass log does not
record: its prior_median_before column arrived with patch 0161). The runner writes each
stage's own values since patch 0163, and v0.12.1 ships the two files rebuilt with the level σ
and with the two γ values printed as not recorded.
(4) gamma_exposure is the number of moment rows that involve the row's γ — 1 or 2 for a
non-reference exporter — not the number of exporters in the cell, as the README's column
table said. (5) Since v0.12.0 the README's sigma row held two unescaped | inside its
table cell, so GitHub's rendering ended the cell there and did not show the rest of the row,
including the statement that σ − 1 is likely overstated by 5–9%; the row renders in full
since patch 0163. (6) The interval quoted for the shrinkage gain ([0.004, 0.016]) comes from
a bootstrap over cell-directions, which draws the two directions of a cell and the cells of a
product as independent observations; analysis/sigma_update_window_census.R computes a
product-clustered interval since patch 0163, not yet run, and until it is the gain's sign
should be read as less certain than the quoted interval suggests (run 2026-11-11: the sign
holds; see "Measurements" below). (7) Since v0.12.0
gamma_v_resid is carried over from the γ_V-final table (pass 3 against pass 2, at the σ
before the update); the published γ comes from one more pass at the updated σ with the same
γ_V inputs as pass 3, so the column does not measure the published γ's own distance from a
fixed point. (Since v0.13.0 it does: the column is the last γ_V refresh's step; see that entry.)
Measurements (2026-11-11, patches 0165–0166; no estimate changes). Local runs on the 2%
product subsample (docs/results/sigma_update_sensitivity_census.md,
docs/results/sigma_update_window_census.md; rules fixed before the numbers). (1) The
shrinkage gain of the published σ over one number, 0.011 in median |Δ ln(σ − 1)|, has a 95%
interval of [0.002, 0.018] when the subsample's 25 products are resampled (0.6% of draws at or
below zero) and stays positive under each of 10 fold seeds: its sign holds, and correction (6)
above is resolved. A separate shrinkage weight for small and large cells does not beat one
weight (gain 0.0005, interval [−0.003, 0.005]). (2) The published σ's level depends on the
unit-value threshold of the Stage-2 panel as Stage 1's does: with γ held at its final values the
median updated σ is 2.29 untrimmed, 2.50 at |Δ ln p| < 3, 2.75 at the shipped 2 and 3.22 at
1.5, with no plateau; read the level as conditional on the shipped rule. (3) The published γ is
not at its own γ_V fixed point after the σ update: one more pass with the exporter γ_V lookup
rebuilt from the update's table moves 15.0% of directly estimated rows by more than 1% and the
opt_tariff of 37.5% of cells by more than 1%. The next re-estimation includes that pass. (v0.13.0
runs two such refreshes; see its entry.)
(4) The profile's closed form (weighted least squares in 1/(σ − 1)) reproduces the grid search
on every cell but one near the floor (largest gap 6.8e-7 in ln(σ − 1)); the next
re-estimation uses it. (v0.13.0 does.)
Corrections (2026-10-15, patches 0116–0118; no estimate changes). (1) The
v0.10.0 and v0.11.0 entries give optimizer non-convergence as 0.42%: that was the
share of imputed reference rows (the reference exporter of a cell whose other
exporters are all Tier 3), which the release gates counted by mistake. The
optimizer's own figure on the v0.11.0 table is 0.72% of directly estimated rows
(35,825 rows in 1,775 of 210,098 fitted cells;
docs/results/stage2b_convergence_census_v0110.md). (2) Entries since v0.8.3 say
the Nelder–Mead restart runs for cells that reached the iteration cap. It runs for
every cell whose L-BFGS-B fit did not converge, and on the v0.11.0 table 93% of the
non-converged rows were a failed line search (L-BFGS-B code 52), 7% an iteration
cap (code 1): L-BFGS-B's on at most the 7 cells where it reached its cap (at most
~1,270 of the 2,397 such rows), the Nelder–Mead restart's on the rest, where its
point was kept because its objective was lower (patch 0121). (3) Every release with a full data revision is now tagged on this
repository under its version, v0.3.0 to v0.11.0, so revision="v0.10.2" (or
resolve/v0.10.2/ in a URL) reaches that release; the repository's
scripts/download_outputs.R --manifest <that release's manifest> --revision <tag>
fetches and verifies one.
Measured since v0.11.0 (2026-10-15, patches 0122–0130; no estimate changes).
(1) Known truth (validation/known_truth_stage2.R; docs/results/known_truth_stage2.md):
on synthetic panels built to the estimator's own assumptions — Soderbery's model with
known σ and γ, 30 years, no unit-value measurement error, 3 seeds — the shipped
pipeline's within-cell γ deviations correlate with the true ones at r = 0.05 at
baseline shock volatility and 0.09 at three times it (0.21 and 0.18 even with the true
σ and no shrinkage). On real data the within-cell spread of γ reproduces within a
period (r = 0.36), but neither it nor the within-cell ordering is exporter-level supply
information; the v0.8.1 entry's "about half the within-cell heterogeneity is signal"
no longer stands. (2) σ out of sample (docs/results/sigma_eb_period_census_v0110.md):
on the 1995–2009 / 2010–2024 split of a 2% product subsample, one global σ predicts a
cell's estimate in the other period better (median absolute error in ln(σ − 1) 0.87
and 0.83) than the cell's own published σ (1.00 and 0.98) or its empirical-Bayes
posterior (0.95 and 0.94): cell-level differences in σ do not carry across periods,
and empirical-Bayes shrinkage of σ is not adopted. (3) What γ and opt_tariff do
track (docs/results/known_truth_structured.md): on synthetic panels whose ln γ differs
by product (s.d. 0.7 between 12 products), the products' median published γ correlates
with the true one at 0.88 and 0.91 (baseline and triple shock volatility) and their
mean ln opt_tariff at 0.89 — product differences pass from the Stage-1 ω through the
Stage-2a priors. With an importer effect added (s.d. 0.5), the cell mean ln γ tracks
the importer differences within a product at only r = 0.16 and 0.23, keeping 2% and
21% of their true spread. Differences between products are recovered; differences
between importers within a product weakly; differences between exporters within a
cell not at all. (4) The published files were re-downloaded from this hub at tag
v0.11.0, matched data/manifest.csv, and pass the release gate's checks of schema,
σ reconstruction from Stage 1, sigma_robust, sigma_source and trim_reason
(docs/results/gate_hub_v0110.md). (5) Stage 1 at known truth
(docs/results/known_truth_routing.md): cells whose closed form is inadmissible
and that go through the Step-2 cascade -- 24.8% of the cells with an estimate in
the shipped Stage 1 -- carry σ − 1 overstated by a median factor of about 1.4
(1.2 after the edge and pole rules), against about 1.07 on the closed form's
cells. The boundary search, the alternative, is usable on 23,592 of those cells and
does not do better (patch 0129, docs/results/routing_ab.md): less biased but noisier at
known truth, and worse at predicting the other period's σ on real data; the route stays,
and switching would have moved the fallback σ only from 2.473 to 2.486.
v0.13.0 (2026-11-19). One Stage-2b re-estimation on the v0.12.1 Stage-1 table, resumed from the v0.12.0 run's γ_V-final table (pass 3, checked against this run's panel and Stage 1 before use;
--stage2b-resume-from, patch 0167), under the configuration the measurements of 2026-11-11 decided (patches 0165–0168;docs/results/sigma_update_sensitivity_census.md). (1) The σ profile is solved in closed form: at fixed γ the import residual is linear in 1/(σ − 1), so the minimiser is a one-regressor weighted least squares (the same status as the grid search on 4,498 of 4,499 cells of the 2% subsample, agreement to 6.8e-7 in ln(σ − 1); 2.5 minutes on the box against the grid's 20.6). (2) The2a2bscope: after the profile, Stage 2a is re-estimated at the region medians of the updated σ and the good-level priors are rebuilt from it (their median γ 0.753 → 0.770), and that re-run is the published Stage-2a table (stage2a/…_regional_hs4_fixed_sigma.rds/.parquet; v0.12.1's was estimated at the Stage-1 σ: published rows 422,212 → 424,043, γ median 0.781 → 0.805,opt_tariff0.883 → 0.906). Written by the current code, it also carriestotal_tradeandopt_tariff_total, as the Stage-2b table does since v0.11.3: 24 columns, against the 22 of the Stage-2a table v0.11.0–v0.12.1 shipped. (3) Two γ_V refreshes after the update pass, each a Stage-2b pass with the exporter γ_V lookup rebuilt from the table before it: the first moved 17.9% of directly estimated rows by more than 1% and theopt_tariffof 40.3% of cells, the second 5.8% and 13.7%, so by the rule fixed in patch 0167 two ship (--stage2-gamma-v-refresh 2, the default since patch 0168).gamma_v_residis now the second refresh's step, the published γ against the table before it (median 8.6e-5, p99 0.088, below 0.01 on 94.2% of the 4,992,802 rows it fills); the published γ is closer to its γ_V fixed point than in v0.12.x, not at it. The run's_gamma_v_refresh.csvis published beside the table. (4) No σ tail in the trim once σ is the shrunk update, which lies in [1.54, 4.96] by construction: nosigma_lorows (12,123 in v0.12.0), the 0.5% γ tails only (--stage2-trim-sigma-tail auto). (5) The 1,545 cells with a Stage-1 σ and no fitted exporter, which the profile cannot reach and which kept their Stage-1 σ through v0.12.1 (4,646 imputed rows in v0.12.0), carry the level (--stage2-sigma-update-unprofiled level), so no row isestimated. Numbers (v0.12.1 → v0.13.0): published rows 6,829,595 → 6,841,382 (+0.17%; flagged trimmed rows 62,413 → 50,626); γ median 0.8219 → 0.8262,opt_tariff0.8976 → 0.8983, σ median 2.6636 → 2.6635 (the level 2.678 unchanged; 211,313 cells profiled, 199,888 updated, 11,383 at the cap and 42 at the floor); on the 4,896,672 shared directly estimated rows with a shrunk updated σ, γ moved by a median 0.31% (p90 3.4%, p99 32%), on the 89,773 at the level by 0.66% (p90 9.3%); Tier 3 26.4% unchanged; optimizer non-convergence 0.18% → 0.19% of directly estimated rows (646 → 678 cells).sigma_sourcereadsupdated_import_shrunkon 96.9% of rows,updated_levelon 2.3% and afallback_*label on 0.8%. On the full panel the update depends on the unit-value threshold as it did on the 2% subsample — with γ held at its final values the median updated σ is 2.289 untrimmed, 2.479 at |Δ ln p| < 3, 2.735 at the shipped 2 and 3.250 at 1.5 (2.286 / 2.499 / 2.748 / 3.215 on the subsample), and the level ln(σ − 1) lies 0.419 apart between 1.5 and 3, with a Spearman correlation of 0.58 across the 184,712 cells at both (docs/results/sigma_update_sensitivity_census_v0130.md) — so the published level stays conditional on the shipped rule. The product table is rebuilt from the new table; its reproducibility rows are v0.12.0's, carried and not re-measured (docs/results/product_summary_census.md). The six table censuses are re-run on this table (_v0130;scripts/refresh_table_censuses.R --re-estimated). Release gate PASS under the update's rules (docs/results/gate_v0130.md). Data revision:38c7a786e4b9c4f201e41ed831fe3849a7138c9b. v0.12.1 remains available pinned at revision4c20c839c20ae0457c6f44146278a97fa1f3b29c.v0.12.1 (2026-11-09). No re-estimation: the Stage-1, Stage-2a and Stage-2b tables and the update's pass log are unchanged. Two files that the v0.12.0 train wrote with code from before the σ update are rebuilt from them (patches 0163–0164). (1) The product table (CSV and Parquet):
share_cells_own_sigmacounted only the cells labelledestimated— since v0.12.0 the few cells that keep a Stage-1 σ — and was 0 for most products (median 0, 90th percentile 0.014); it now counts the cells whose σ is their own value, the Stage-2 update or a Stage-1 estimate, rather than the level. Every other column is unchanged, and so is the table's reproducibility census, which compares product medians of γ andopt_tariff(docs/results/product_summary_census.md). (2) The Stage-2b summary files (…_summary.rds/.txt): their CONFIGURATION block printed the library's placeholders (σ_V 2.880, γ_V 0.690, and those as starting values); it now gives the level σ (2.678), the σ_V default the final Stage-2b pass ran under, and prints the γ_V default and the γ starting value as "not recorded": both were the median good-level prior, but the v0.12.0 pass log predates the column that records it (patch 0161), so no shipped file holds the number (scripts/rebuild_stage2b_summary.R --passes); their tables are unchanged. The v0.12.0 entry below again carries its data revision, which patch 0162's card edit had reverted to a placeholder. Data revision:4c20c839c20ae0457c6f44146278a97fa1f3b29c. v0.12.0 remains available pinned at revision73cf5702564820d35260a87974aed2ceed9c4f45.v0.12.0 (2026-11-08). One Stage-2b re-estimation on the v0.11.4 Stage-1 and Stage-2a tables, both loaded unchanged (patches 0150–0158). The published σ is now the Stage-2 update: after the three γ_V passes — which reproduce v0.11.4's table exactly (6,801,742 published rows, γ 0.804; kept as
_fixed_sigma_pass3.rdsin the run folder) — σ is re-solved per (importer, product) cell from the import block (Eq. (10)) of the Stage-2 objective at the estimated γ, shrunk toward the full-panel level by the reliability ratio measured on two independent 15-year windows of the 2% product subsample (B = 0.146, Spearman–Brown b_full = 0.255; level σ 2.678), and Stage 2b runs once more at that σ (--stage2-sigma-update import --stage2-sigma-shrink 0.146, the defaults). Why: at known truth Stage 1 overstates σ − 1 by about 12% at the within-cell γ dispersion the panel shows, the import block identifies σ and the export block does not even at the truth (docs/results/known_truth_eq11.md) — addendum 2026-11-09: the update reduces the error around that bias but not the bias; at the estimated γ it still overstates σ − 1 by about 9%, at the true γ by about 2%, and neither loosening the ridge for the profile nor iterating the update moves it (§14 of the note), so the published σ − 1 is likely overstated by 5–9% on average —; on the two windows the Stage-1 cell σ has no cross-period reproducibility (median |Δ ln(σ − 1)| 0.965, r 0.04), the update halves the error (0.481, r 0.11) but still loses to one number (0.378), and the shrunk update is the first cell σ that beats one number out of sample (0.365 vs 0.376; bootstrap interval on the gain [0.004, 0.016];docs/results/sigma_update_window_census.md); the odd/even parity A/B on the 2% subsample read no loss on the within-cell γ (r_within 0.357 → 0.380, goods-bootstrap interval on the difference [0.007, 0.040];docs/results/stage2_reliability_ship.md). The update profiled 211,313 cells, updated 199,857, left 11,395 at the σ cap and 61 at the floor (these carry the level). Numbers: published rows 6,801,742 → 6,829,595 (the σ-low tail trim shrinks from 42,853 to 12,123 rows); σ median 2.473 → 2.664 (IQR 2.53–2.81, the shrunk spread around the level); the fallback share 41.0% → 0.8% (56,071 rows, the cells with no import rows to profile; the fallback value is the level); γ median 0.804 → 0.822,opt_tariff0.852 → 0.898; on the 4.8 million shared directly estimated rows γ moved by a median 3.6% (p90 48%); Tier 3 26.4% unchanged; non-converged cells 1,775 → 646 (0.72% → 0.18% of directly estimated rows).sigma_sourcereadsupdated_import_shrunkon 97.0% of rows,updated_levelon 2.2%, afallback_*label on 0.8% andestimatedon 4,646 rows; three columns are added —sigma_update(the unshrunk profile σ),sigma_stage1(the σ the cell carried into the update, i.e. the v0.11.4 column) andsigma_source_stage1— for 28. Because an updated σ has no Stage-1 SE,sigma_seisNAandsigma_robustFALSEon every updated row andgamma_se_totalis populated only on the 4,646 rows that keep a Stage-1 σ (sigma_robustTRUE 24.2% → 0.0%);gamma_seis the SE to read, conditional on σ. The run's_sigma_update_passes.csv(cells profiled / updated / at the floor / at the cap, the level, B and b_full) is published beside the table. Release gate PASS under the update's rules (docs/results/gate_v0120.md). Patch 0150 fixed a silent failure mode on the box: a killed forked worker had shortened the tables with only a warning; both forked paths now stop. Data revision:73cf5702564820d35260a87974aed2ceed9c4f45. v0.11.4 remains available pinned at revision3397d5e60f1ea8a9c62b0e2268581945bc9a042b.v0.11.4 (2026-10-26). No re-estimation; every table is unchanged. The two Stage-2b summary files (
stage2b/..._summary.rdsand..._summary.txt) are rebuilt from the shipped table (patches 0147–0148,scripts/rebuild_stage2b_summary.R). Their per-importer table, within-pair statistics and variance decomposition, which the text compares with Soderbery (2018), had summarized the Tier-3 rows as if estimated: 1,819,483 rows set to the good-level prior, one value per good, holding no exporter information. Over the 4,982,259 directly estimated rows the within-pair median MAD of γ is 0.120 (was 0.022; Soderbery 0.125), the median within-pair SD 0.492 (was 0.363; Soderbery 0.625) and the importer × product R² 0.408 (was 0.439; Soderbery 0.72), on 209,101 importer-product pairs with two or more estimated exporters (was 230,967); the per-importer table's world median γ is 0.787 (was 0.804). The within-cell spread of γ scales with the ridge λ, so these describe the published presentation, not identified exporter heterogeneity. The README's opening now gives the estimated and Tier-3 counts instead of calling every row an estimate with a standard error. Data revision:3397d5e60f1ea8a9c62b0e2268581945bc9a042b. v0.11.3 remains available pinned at revisiona8af84de0af983571c145b95e9f2a8892a7ed2fe.v0.11.3 (2026-10-25). No re-estimation; every existing column is unchanged. The Stage-2b table gains
total_trade(the pair's total customs value over its observations in the differenced Stage-2 estimation panel -- the years after the first of each consecutive run, less those the |Δ ln p| ≥ 2 unit-value trim removed, so not the pair's total trade over the period;avg_tradeis the mean over the same observations) andopt_tariff_total(the cell's optimal tariff with exporters weighted bytotal_tradeinstead ofavg_trade, so a pair that traded heavily for a few years weighs less than one that traded steadily for decades); the product table gainsopt_tariff_total_median; both Parquet copies follow.opt_tariffkeeps its definition. The weighting matters: againstopt_tariffthe cell value moves by a median 5.6% and by more than 10% in 35% of cells, and product medians by a median 5.6% (docs/results/tariff_weight_census.md). Added byscripts/add_opt_tariff_total.R(patch 0139), which writes nothing unless it reproduces the publishedavg_tradeon every row andopt_tariffin every cell; on a synthetic world its table equals a native re-run of the patched estimator, which computes both columns from now on. Data revision:a8af84de0af983571c145b95e9f2a8892a7ed2fe. v0.11.2 remains available pinned at revision049aeb07a5f5fdeed289462743103f7c2b82facc.v0.11.2 (2026-10-25). No re-estimation; the 12 v0.11.1 files are unchanged. Adds Parquet copies of the Stage-2b, Stage-1 and Stage-2a tables and of the product-level table, beside their sources with the same base names (
stage2b/…_fixed_sigma.parquet,stage1/…_feenstra_sigma.parquet,stage2a/…_regional_hs4_fixed_sigma.parquet,product/…_product_summary.parquet), written byscripts/export_parquet.R(patch 0137) and checked value for value against the published files before upload. The dataset viewer now opens on the product-level table and can browse, search and filter the main tables.goodis a string in the Parquet files (HS4 with its leading zero). Python:pandas.read_parquet("hf://datasets/impex-machina/trade-elasticities@v0.11.2/product/baci_hs92_v202601_elast_hs4_product_summary.parquet"); the same paths work in DuckDB and Polars. The.rdsfiles stay the canonical copies. Data revision:049aeb07a5f5fdeed289462743103f7c2b82facc. v0.11.1 remains available pinned at revisiondf6992bb38857dacce723bd3ee8d14d9e1372923.v0.11.1 (2026-10-16). No re-estimation; the 11 v0.11.0 files are unchanged. Adds a product-level companion table,
product/baci_hs92_v202601_elast_hs4_product_summary.csv: one row per HS4 product (1,240), built from the v0.11.0 Stage-2b table byanalysis/product_summary.R(patch 0128) -- the median γ over directly estimated rows, the medianopt_tariffover (importer, product) cells, σ, the share of cells with their own σ, and counts. At known truth the pipeline recovers differences between products, weakly those between importers within a product, and not those between exporters within a cell (see the note above). On a 2% product subsample the product medians hardly depend on which half of the Stage-2b data is used (Spearman 0.99 for γ and 0.97 foropt_tariffbetween odd and even years, 0.99 and 0.98 between 1995–2009 and 2010–2024;docs/results/product_summary_census.md), but those halves share the full-panel Stage 1 (the odd/even halves also its Stage-2a priors), from which a product's median is mostly built, so they do not show that product differences reproduce in independent data. No interval columns: resampling importers leaves the product prior -- a product's main source of uncertainty -- untouched. Readgoodas character. (Corrected 2026-10-17, patch 0130: this entry first called those halves independent and the gap between them the table's error scale. On independently estimated periods -- each period's own Stage 1, 2a and 2b, on the subsample's 25 products -- product medians correlate at 0.64 for γ and 0.76 foropt_tariff(docs/results/product_window_census.md): the ranking of products reproduces, while between 1995–2009 and 2010–2024 a product's median differs by a median of 25.5% for γ (94.9% at the 90th percentile) and 16.0% foropt_tariff(56.4%) -- partly change over time, and the scale of uncertainty for the table's values.) Data revision:df6992bb38857dacce723bd3ee8d14d9e1372923. v0.11.0 remains available pinned at revision19843d50fb7cf71b437ca52af8f61fe4a8b20f11.v0.11.0 (2026-10-14). One Stage-2 re-estimation on the v0.9.x Stage-1 table (patches 0110–0114). Eq. (11)'s export side is built on log export values (
--stage2-export-moment value), the form of Soderbery's Eq. (8) that his Eq. (7) implies: the printed form on export shares leaves the exporter's total sales in the error. Stage 2b's priors, regional gamma_V and starting values come from Stage 2a's published rows only (--stage2a-handoff-rows published); v0.10.x included the 5,798 rows its tail trim flagged, which moved 757 of 1,240 goods' priors (12% at the 99th percentile, 56% at most). Median gamma 0.806 -> 0.804,opt_tariff0.869 -> 0.852; on directly estimated rows gamma moved by a median 0.007-0.010 in log points (p99 0.84-1.06); published rows 6,801,807 -> 6,801,742. The fallback sigma and its share (41.0%), Tier 3 (26.4%), non-convergence (0.42% as reported: the imputed-reference share, see Corrections; 0.72% is the optimizer's) andsigma_robust(24.2% TRUE) are unchanged. Pillar 3 is re-captured with the import-side constant concentrated out, as the estimator does.sigma_sourcewas added after the run withscripts/add_sigma_source.R(the in-run labelling landed on a copy and was not saved; fixed in patch 0114); 23 columns. Data revision:19843d50fb7cf71b437ca52af8f61fe4a8b20f11. v0.10.2 remains available pinned at revisionf02707f9e421f6e6c70609d675650da90555ab2b.v0.10.2 (2026-10-13). Validation-only, no re-estimation (patch 0109): the Pillar-2 synthetic-recovery battery re-captured at the sigma cap the shipped Stage 1 has used since v0.9.0 (50). Through v0.10.1 every validation fit took
estimate_cell_liml()'s library default (10), soliml_validation_tier1a.csvandliml_validation_tier1b.csvdescribed a configuration the pipeline no longer shipped. At 50 the estimate yield across the sigma x omega grid is 80.0-100.0% (median 99.2%; 98.0% at 10), the median sigma bias runs -38.0% to +30.4% (-40.4% to +30.4%), negative at 8 of 12 grid points, the worst absolute median bias on either parameter is 47% (omega at sigma = 8, omega = 3; 58% at 10), and the median sigma coverage is 0.916 (0.913). The change sits at sigma = 8, where fits that reached the old cap now resolve in the interior (interior HLIML at (8, 1): 62 -> 82 of 200 replicates; route mix 65.0% interior / 8.9% Step 2 / 26.2% boundary, from 62.7 / 11.5 / 25.8). Tier 1b's yield rises from 93% at n = 150 to 100% at n = 3,000, as at 10. Both CSVs gain asigma_capcolumn, anddocs/methodology/liml_validation.mdis now written by the capture itself. Estimates, the bootstrap pair and the Pillar-3 files are unchanged; 23 columns. Data revision:f02707f9e421f6e6c70609d675650da90555ab2b. v0.10.1 remains available pinned at revision6882f00d1a2b9924838d6bb6846076c5e5d54fa0.v0.10.1 (2026-10-12). One schema addition, no re-estimation (patch 0103):
sigma_sourcenames where each row's sigma comes from --estimated,fallback_no_estimate,fallback_sigma_edgeorfallback_sigma_pole-- since 41% of v0.10.0's published rows carry the one fallback sigma and could otherwise be told apart from estimates only by value. Built from the Stage-1 table by the code path the pipeline itself uses (scripts/add_sigma_source.R), which verifies that everyestimatedrow carries its cell's Stage-1 sigma and every fallback row the fallback sigma before writing; census indocs/results/sigma_source_v0101.txt: of 6,801,807 published rows, estimated 4,016,300 (59.0%), fallback_sigma_pole 1,751,963 (25.8%), fallback_no_estimate 734,207 (10.8%), fallback_sigma_edge 299,337 (4.4%); the reconstruction matched the shipped sigma column on every row andanalysis/gate_release.Rpassed. Every v0.10.0 value is unchanged; 23 columns. Data revision:6882f00d1a2b9924838d6bb6846076c5e5d54fa0. v0.10.0 remains available pinned at revision31bc1fcfc64aa4475f70ce135262b9cacdd9c257.v0.10.0 (2026-10-12). Methodology release, Stage 1 unchanged (the v0.9.x Stage-1 table, sha256 908c8f53...). Three defaults flipped (patch 0101), every one reversible by flag to the v0.9.1 configuration: (1) the sigma-pole rule -- a Stage-1 cell whose sigma is within one standard error of the pole (sigma - 1 < SE) is treated as no estimate and takes the fallback sigma, as a cap-edge cell has since v0.9.0 (55,396 cells; the fallback becomes the clean-set median 2.473, on 41.0% of published rows); measured on the 2% subsample grid of 2026-10-11 (c = 0.5 / 1 / 2 / 2.5): split-half reproducibility of the within-cell gamma 0.333 -> 0.365 at c = 1 with the gain on the moved cells themselves (0.305 -> 0.378 at the unmoved cells' dispersion), non-converged 2.3% -> 0.6%, no gamma <= 0.01 or >= 10 left; (2) Stage 2a's default gamma_V and gamma start are taken over the rows the good-level priors use rather than the whole clean set; (3) trimmed rows stay in the table with
trim_reasonset (90,201 flagged rows beside 6,801,807 published) -- filteris.na(trim_reason)before use.gamma_v_residis filled natively by the gamma_V passes (4,911,380 rows; p50 2.3e-04 / p90 0.014 / p99 0.245 -- the iteration settles faster with the pole cells out: pass 2->3 p99 0.23 vs 0.40 in v0.9.0). Headline: gamma median 0.644 -> 0.806, opt_tariff median 0.733 -> 0.869, fallback sigma 2.306 -> 2.473. Attribution (single-pass 2b runs on the box): the rule in Stage 2b alone moves the gamma median to 0.662; the re-estimated Stage 2a, whose regional sigmas no longer include pole cells, carries the rest (0.777 with the new Stage 2a and the rule off in 2b). The import moments pin the composite gamma/((1+gamma)(sigma-1)): on cells whose sigma moved only through the fallback it is unchanged (0.326 -> 0.325), so the level shift is the sigma-gamma trade-off of a less pole-biased sigma, not new information about gamma. Reproducibility of the shipped configuration on the subsample grid: within-cell r 0.333 -> 0.369, rank 0.343 -> 0.368. Optimizer non-convergence among directly estimated rows 0.42% in both releases (the imputed-reference share, not the optimizer's: see Corrections). Gate (analysis/gate_v0100.R): PASS. Data revision:31bc1fcfc64aa4475f70ce135262b9cacdd9c257. v0.9.1 remains available pinned at revision134c1cbc80b5e657e45dd92e9c96c4d71155877c.v0.9.1 (2026-10-11). Correction to the sigma-propagation columns on the 13,810 cells whose Stage-1 sigma is a box edge (patch 0090). Under the v0.9.0 sigma-edge rule those cells take the fallback sigma, but the Stage-1 sigma_se and adjust lookups were still built from the full Stage-1 table, so on the omega-edge corner cells among them (a finite projected sigma SE, adjust 6/8) sigma_se and dgamma_dsigma were published for the discarded sigma = 50 point beside the fallback sigma. Census of the correction on the shipped table: 13,804 of the 13,810 edge cells present (300,515 rows, all at sigma 2.30595); sigma_se finite on 81,401 rows -> 0, dgamma_dsigma finite on 80,521 -> 0, gamma_se_total finite on 0, sigma_robust TRUE on 0 -- the pole test rejected every corner cell, so the v0.9.0 sentence "sigma_robust FALSE on the 13,810 edge cells" held in fact (by the test's outcome, not by construction) and the table-level sigma_robust share (24.4%) is unchanged; the published error was two columns on 1.2% of rows. Applied by
scripts/apply_sigma_edge_se_rule.Rwithout re-estimation: gamma, gamma_se and every other v0.9.0 column are identical to v0.9.0; on the edge cells sigma_se and dgamma_dsigma are NA, as on every other fallback cell. Two schema additions, both computed locally and both NA-safe for a consumer that ignores them (patch 0093):gamma_v_resid= |ln gamma - ln gamma_prev| between the last two gamma_V passes (filled on 4,743,415 rows, 69.7%; p50 3.97e-04, p90 0.027, p99 0.417, max 8.26; 83.0% of filled rows below 1e-2), NA on Tier-3, non-converged and absent rows; andtrim_reason, NA throughout this release (the v0.9.0 drop semantics are kept: the trimmed rows are not in the table), the column that--stage2-trim-action flagfills from v0.10.0 on. 22 columns. Stage 1 and Stage 2a unchanged (sha256-gated). The summary.rds/.txtbeside the Stage-2b table are the v0.9.0 run's and predate both corrections (as in v0.8.3). Also in this release: the dataset card's changelog entries are separated so they render as paragraphs, and the hub viewer is configured one CSV per subset. Data revision:134c1cbc80b5e657e45dd92e9c96c4d71155877c. v0.9.0 remains available pinned at revisionaf5d7c659f2a17e1c3e3ce8765d75731616a292c.v0.9.0 (2026-10-10). Methodology release, from the v0.9 rc attribution ladder (five runs, one change each; compare docs in docs/methodology/). (1) The Stage-1 sigma cap is 50 (10 through v0.8.3): 68,518 cells publish a different sigma -- the 24,780 that sat at the old cap plus some 42,000 whose closed-form HLIML point had sigma in (10, 50) and had been routed to Step 2 -- 1,667 cells gain an estimate, sigma_se is finite on 95.2% of ok cells (89.8%), and 13,810 cells sit at the new edge (sigma_capped TRUE, sigma_robust FALSE). (2) The tail trim takes its sigma bounds over cells and the Stage-2a plateau replacement is retired; the removed rows are on record. (3) Eq. (11)'s reference-destination gamma_V is the exporter's own gamma at that destination from the previous Stage-2b pass (three passes), replacing the regional-median proxy, which mis-set it by 0.2% at the median but 9% at p90 and 92% at p99 of Tier-1 rows. (4) The export-side Broda-Weinstein T is the pair's panel length. (5) A Stage-1 cell whose published sigma is a box edge takes the fallback sigma like a cell with no estimate (sigma_robust FALSE, no sigma_V, omega out of the priors): 13,810 cells at cap 50. Numbers vs v0.8.3: rows 6,813,953 -> 6,806,221; gamma median 0.656 -> 0.644 (1/gamma 1.52 -> 1.55); opt_tariff row-level median 0.751 -> 0.733; sigma median 2.462 -> 2.306 because the fallback sigma (the clean-cell median, now without the 13,810 edge cells) moved, not the estimates; 15.2% of rows carry it (10.8% without a Stage-1 estimate, 4.4% edge cells); gamma_se_status ok 69.5% -> 69.3%, non_converged 2.3% -> 2.4%; sigma_robust 23.7% -> 24.4%. Stage 1 re-estimated at cap 50: 182,912 ok cells (181,245), 68,518 cells publish a different sigma, sigma_se finite on 95.2% of ok cells (89.8%), 35,871 rows with sigma above 37 (max 49.99); the 13,810 edge cells carry the fallback sigma with sigma_robust FALSE. Exporter-specific gamma_V resolved on 93% of export rows; step sizes on Tier-1 rows p50 / p90 / p99 0.21% / 9.3% / 88% (pass 1 to 2) and 0.04% / 2.5% / 40% (pass 2 to 3), 83.6% within 1% after pass 3 -- the tail residual is a stated limitation. Optimizer fallback 7,710 cells (restart worse on 6,641). Tail trim 85,787 rows (gamma 24,550 high / 19,230 low, sigma 42,007 low; no high sigma bound). Bootstrap-SE census re-run at cap 50 (750 x 399): the robust same-branch dispersion ratio is 1.18x overall (1.0-1.5x by route at cap 10) while the unconditional SD ratio is 10.7x (3.3-4.5x at cap 10), because the cap-10 clamp had truncated the replicate tails. Split-half parity reliability re-measured on the shipped configuration: r_within 0.324, rank rho 0.338 (0.298 at cap 10). Attribution ladder and gates: S3 v090rc_run_20261004 (runs A-E) and v090rel_run_20261010 (G, G2). Data revision:
af5d7c659f2a17e1c3e3ce8765d75731616a292c. v0.8.3 remains available pinned at revision60be1e6bae2a575ec1af2094beb7f542a120f812.v0.8.3 (2026-10-02). Two Stage-2 fixes from the 2026-09-29 audit, both bit-preserving under the previous rule (
--stage2-fallback legacy,--stage2b-prior-source allreproduce v0.8.2). (1) A cell whose L-BFGS-B fit reaches the 5,000-iteration cap now publishes the better of its two optimizer results; through v0.8.2 the Nelder-Mead restart was published unconditionally, and on a 2% product subsample it was the worse point on 123 of the 138 such cells. Where the restart had reported convergence at a stalled point, the row now reads non_converged where v0.8.2 read ok. The run's fallback table records both outcomes per cell (docs/results/stage2_fallback_census.md). (2) The Stage-2b good-level prior and the Eq. (11) reference-destination gamma_V are medians over directly estimated Stage-2a rows; through v0.8.2 they included Stage 2a's own Tier-3 imputations (6.8% of rows), which moved the prior by more than 5% on 78 of 1,240 goods and gamma_V by more than 5% on 18% of (region, good) cells (docs/results/stage2a_prior_rows_census.md). (3) opt_tariff and opt_tariff_all are computed over the rows each cell publishes; through v0.8.2 they were computed before the 0.5% tail trim, so 27,797 Stage-2b cells (12%) carried a value that included trimmed rows (median relative difference 19.5%) and 1,571 cells stated a tariff above every gamma they publish; corrected on the rc tables by scripts/recompute_opt_tariff.R without re-estimation. Stage 1 identical to v0.7.3-v0.8.2 (regenerated on the v0.8.3 box, byte-identical, sha256-gated); Stage 2a differs from v0.8.2 on its 398 fallback cells and in opt_tariff only elsewhere. Numbers vs v0.8.2: gamma median 0.656 unchanged (1/gamma median 1.524 -> 1.525); opt_tariff row-level median 0.760 -> 0.751 (cell-level 0.647 -> 0.638), net of the two rule changes and the opt_tariff correction; gamma_se_status ok 69.8% -> 69.5% and non_converged 2.0% -> 2.3% (2,768 cells that v0.8.2 labelled ok at a stalled restart now read non_converged); sigma_robust 23.6% -> 23.7%; rows 6,812,560 -> 6,813,953. Optimizer fallback: 7,295 Stage-2b cells reached the cap, the restart was the worse point on 6,274 (86%) and had reported convergence on 3,672; 398 Stage-2a cells. opt_tariff recomputed over published rows on 25,894 Stage-2b cells (11.2%; 1,528 had been above every gamma they publish) and 1,651 Stage-2a cells (125). Stage 1 regenerated on the v0.8.3 box and byte-identical to the shipped file (sha256 591d3bde...). The shipped summary.rds and summary.txt were written before the opt_tariff correction; the tables and the README reflect it. Data revision:60be1e6bae2a575ec1af2094beb7f542a120f812. v0.8.2 remains available pinned at revision7f85c8c31c4d2f8dcd3f8d4b848634f4217278c6.v0.8.2 (2026-09-29). Validation only: Pillar 3 (the standard-error Monte Carlo) re-captured for the gamma_se form shipped since v0.7.4 -- the sandwich with the ridge in lambda/gamma^2 units -- and extended with a production-shrinkage regime (gamma_shrink_wt ~0.90, the shipped table's median). The shipped SE's median ratio to the empirical sampling SD is 0.98-1.03 across five regimes and 1.03 at production shrinkage, where the pre-v0.7.4 formula gives 2.2. Estimates identical to v0.8.1 (only validation/se_calibration_mc_*.csv change). Data revision:
7f85c8c31c4d2f8dcd3f8d4b848634f4217278c6. v0.8.1 remains available pinned at revision0e3e446d0042268508e42414e95ad131f561ca11.v0.8.1 (2026-09-29). The Stage-2 cell optimizer's iteration cap rises from 500 to 5,000: on a 2% product subsample non-converged cells fall from 7.6% to 1.5% of rows, the freed cells moving a little further from the good-level prior (opt_tariff cell median +1%). Same estimator, prior, lambda and moments as v0.8.0; Stage 1 identical to v0.7.3-v0.8.0. The reliability statement is revised: on odd/even observations of the same period the within-cell exporter component of gamma reproduces at r = 0.30 (rank 0.32; ~0.5 at full panel length), against 0.09 between 1995-2009 and 2010-2024 -- about half the within-cell heterogeneity is signal, and it is period-specific (docs/results/stage2_reliability_ parity.md). Numbers vs v0.8.0: non_converged 9.0% -> 2.0%; gamma_se finite 63.4% -> 69.8% (median 0.173 -> 0.199); gamma median 0.667 -> 0.656; opt_tariff median 0.749 -> 0.760 (cell median 0.647 unchanged); gamma_shrink_wt median 0.923 -> 0.902; rows +988 (trim membership). Data revision:
0e3e446d0042268508e42414e95ad131f561ca11. v0.8.0 remains available pinned at revision60aad7c0d0534fcdbcb602daddd7269542167789.v0.8.0 (2026-09-28). Stage-2 specification: the reference exporter's own export-side moment (Soderbery's Exports(s_ikg)) and the importer- exporter constant of his footnote 14 (concentrated out of the import block) are now included; the shrinkage prior stays a log-ridge at lambda = 0.1. On a 2% product subsample split 1995-2009 / 2010-2024 the within-cell exporter component of gamma reproduces across halves at r ~ 0.06-0.09 (rank 0.11-0.19) under every prior form tested, so the ranking of exporters within an importer-product cell should not be read as estimated; gamma's informative content is at the good and cell level (docs/results/stage2_reliability_*.md). Stage 1 identical to v0.7.3 and v0.7.4 (sha256-gated). The year window (--minyear/--maxyear) now applies to cached runs (it was silently ignored before; production unaffected). Numbers vs v0.7.4: opt_tariff median 0.723 -> 0.749 (cell median 0.617 -> 0.647); gamma median 0.665 -> 0.667; gamma_se finite 63.0% -> 63.4%; insufficient_df 0.5% -> 0.1%; non_converged 8.9% -> 9.0%; Stage 2a gamma_se now in the shipped sandwich form (median 0.156, was 0.524 legacy-form). Data revision:
60aad7c0d0534fcdbcb602daddd7269542167789. v0.7.4 remains available pinned at revision587b849f1e5733af8f4e8d261ab63759c4a60d3e.v0.7.4 (2026-09-25). Stage-2 correction: the log-ridge penalty on gamma now applies to every coordinate. Through v0.7.3 it skipped coordinates below 1e-5 while the optimizer bound was 1e-6, and 828,294 of the 4,992,699 directly estimated Stage-2b rows (16.6%) sat at that floor, 13 log units below their prior -- the whole
gamma_se_status = boundarypopulation (11.3% of rows); Stage 2a had 14.4% of its rows there and 39 of 1,240 goods a floor prior. Stage 1 is identical (sha256-gated). In Stage 2b: no row at the floor; gamma q25 0.384 -> 0.458 (median 0.650 -> 0.665, max 15.98 -> 11.59); median 1/gamma 1.538 -> 1.503; opt_tariff median 0.649 -> 0.723; gamma_se finite on 63.0% of rows (was 54.7%); boundary SE status 0.1%, non_converged 8.9% (was 4.4%); rows 6,811,822 (trim membership only -- tier identical on every shared key). gamma_se changes definition: it is now the sampling standard error of the shrinkage estimator (sandwich form; median 0.165, was 0.547) -- read it with gamma_shrink_wt, whose definition also moves to lambda/gamma^2 units (median 0.928; data share = 1 - gamma_shrink_wt). Every point-estimate consumer should re-pull. Details:docs/methodology/stage2_country.md("Log-ridge domain", "Variance formula"),docs/methodology/v073_v074rc_compare_runs.md,docs/results/stage2_shrinkage_census_v074rc*.md,docs/results/stage2_lambda_curve_v074rc.md. Data revision:587b849f1e5733af8f4e8d261ab63759c4a60d3e. v0.7.3 remains available pinned at revisiond4225cad88e68061b0af39e2917a26ee50db90ec.v0.7.3 (2026-09-24). Validation-only release: every point estimate, routing field and gamma SE is identical to v0.7.2 (Stage 1: 280,649 cells, ok 181,245, interior 78,526 / Step 2 47,479 / boundary 55,240; sigma 2.462; Stage 2b: 6,814,229 rows, gamma 0.650, opt_tariff 0.649, tiers 3.3/70.0/0.2/26.4). What changes is inference on the 47,479 Step-2 (Fuller LIML fallback) cells: their sigma_se / omega_se / rho_se now come from the k-class sandwich implied by the estimating equations; the sandwich shipped through v0.7.2 used the OLS meat and overstated the Step-2 sigma SE about fivefold at the median (ratio k-class / legacy 0.195, p10 0.104, p90 0.411). Step-2 median relative SE falls from 1.18 to 0.239, on the same footing as interior HLIML (0.252) and boundary (0.298); SE availability is unchanged (89.8% of ok cells). In Stage 2b only sigma_se, sigma_robust and gamma_se_total move, on the 1,018,474 rows (14.9%) whose sigma is a Step-2 cell: sigma_robust TRUE rises from 17.6% to 23.9% of rows (on those rows 15.4% -> 57.9%), gamma_se_total is populated on 19.2% of rows (was 13.9%). liml_validation_tier1a.csv is re-captured under the shipped default and gains six per-route columns (successful replicates and sigma coverage by branch); tier1b and the se_calibration pair are unchanged by construction. The exporter-cluster bootstrap pair is replaced by a branch-tagged 2026-09-24 run (750 cells x 399 replicates on this release's Stage-1 table; medians over the 653 cells with at least four exporters and a defined weak-instrument F): among replicates that stay on a cell's own branch, robust (MAD) dispersion is 1.03x the analytic SE for interior HLIML cells, 1.44x for boundary cells and 1.51x for Step-2 cells; Step-2 cells with strong instruments (F >= 7) sit at 6.4x because their sigma depends on which exporters the cell contains -- read Step-2 sigma_se as a composition-conditional lower bound. Point-estimate consumers need not re-pull; SE and validation consumers should. Details:
docs/methodology/stage1_liml.md("Step-2 standard errors", "v0.7.3 rc"). Data revision:d4225cad88e68061b0af39e2917a26ee50db90ec. v0.7.2 remains available pinned at revisionb1240168d4b83697eb30cdf99551924a55422ad0.v0.7.2 (2026-09-21). Validation-only release: every estimate, SE and routing field is identical to v0.7.1. The four Pillar-2/3 validation files (
liml_validation_tier1a/b.csv,se_calibration_mc_summary.csv,se_calibration_mc_per_param.csv) are re-captured under the estimator's reference configuration -- negative-omega rejection (v0.7.0) and edge SEs (v0.7.1) -- which the previous capture (2026-09-01, v0.6.1 rule) predated. Tier 1a on the (sigma, omega) grid: worst absolute median bias 93% -> 58% (omega at sigma = 8, omega = 3), with omega bias falling at every weakly identified point (e.g. -0.60 -> -0.24 at sigma 5 / omega 0.3, -0.68 -> -0.30 at 8 / 1) as floored omegas no longer drag the medians; sigma bias range -40% to +30%; median CI coverage 90% (was 91%), success rate min 80% / median 98%. Coverage dips 3-11 points at the high-sigma / high-omega corner where truth sits near the caps and the interior HNCS sandwich itself degrades (documented indocs/methodology/v071_edge_se.md); verdict word unchanged (INVESTIGATE), as in every capture since v0.5.x. Tier 1b (consistency) and Tier 2 (closed-form sanity) PASS. Capture:docs/methodology/liml_validation_20260921.md. Point-estimate and SE consumers need not re-pull; consumers of the validation CSVs should. Data revision:b1240168d4b83697eb30cdf99551924a55422ad0. v0.7.1 remains available pinned at revision49466cd24ee2547d838b658dc3869c86deee63bf.v0.7.1 (2026-09-21). Validation-only release: every point estimate and routing field is identical to v0.7.0 (Stage 1: 280,649 cells, ok 181,245, interior 78,526 / Step 2 47,479 / boundary 55,240; sigma 2.462; Stage 2b: 6,814,229 rows, gamma 0.650, opt_tariff 0.649, tiers 3.3/70.0/0.2/26.4). What changes is inference on the 55,240 constrained boundary optima, which v0.7.0 shipped without standard errors.
--stage1-edge-se hncs(now the reference configuration) applies the same HNCS sandwich used for interior HLIML cells, projected onto the edge tangent through theta = theta(theta0, t): the free coordinate (sigma on the omega edges, omega on the sigma-cap edge) gets a sandwich SE, the pinned coordinate stays NA, rho follows by the one-dimensional delta rule (docs/methodology/v071_edge_se.md). Coverage: sigma SE finite on 89.8% of clean cells (from 63.6%), rho SE 91.8% (from 61.7%), omega SE 70.8% (from 66.9%);sigma_robustpasses 17.6% of rows (from 10.7%), 24.0% of non-NA rows;gamma_se_totalmedian 0.588 -> 0.562. 646 boundary cells (1.2%) report a status instead of an SE (edge_se_status: negative variance 448, singular curvature 39, non-PD curvature 159, the last all on the sigma-cap edge). Edge SEs are the same order as interior ones (median sigma SE: omega-cap edge 1.06, omega-floor edge 0.37, interior 0.48). Synthetic calibration (4,800 cells): 92-95% coverage on the floor and cap edges against a 97% interior benchmark, unbiased; degrades only where the interior HNCS also does (truth at a cap). Caveat: the edge SE is conditional on the edge -- on the 2,503boundary_cornercells it measures curvature along the floor edge and cannot see that the objective is nearly flat between the floor and the cap; the flag remains the guard. New columns:edge_se_method,edge_se_status;boundary_corneris FALSE (not NA) on rows the estimator never reached. Re-pull anything consumingsigma_se,rho_se,gamma_se_totalorsigma_robust; point-estimate consumers need not. Data revision:49466cd24ee2547d838b658dc3869c86deee63bf. v0.7.0 remains available pinned at revisionfeabe6f7fbc8f98bdb596e11e81aa70bac188faa.v0.7.0 (2026-09-02). Corrects the treatment of a negative algebraic omega in the Feenstra inversion. When rho exceeds (sigma-1)/sigma the inversion has no positive omega -- the point is the continuation of the admissible interval past omega = +Inf -- and Grant & Soderbery's Stata code clamps it to the 1e-4 floor, the opposite end of the supply axis, reporting near-perfectly-elastic supply. Through v0.6.1 this pipeline did the same: 36,914 interior-HLIML cells (13.2% of the universe, 32% of the interior bucket) were such points shipped with omega = 1e-4, plus 13,482 Step-2 cells. From v0.7.0 (
--stage1-negative-omega reject;floorreproduces v0.6.1 bit-for-bit) such points are inadmissible at every inversion and take the constrained boundary optimum, which lands at the omega cap in 82% of re-routed cells; the omega floor is now the genuine omega -> 0 population. Stage 1: interior 115,440 -> 78,526, boundary 27,297 -> 55,240 (floor 15,578 / sigma-cap 7,259 / omega-cap 32,403), Step 2 39,648 -> 47,479 (13,494 of them sigma-with-omega-undetermined,omegaNA), omega-floored 64,699 -> 15,582, clean cells 182,385 -> 181,245. 138,542 unchanged-route cells are identical to v0.6.1 to zero. Sigma median 2.727 -> 2.462: the constrained optimum sits 13-16% below the unconstrained closed-form sigma on ~34k re-routed cells. New columnboundary_cornerflags 2,503 floor-edge optima reached from a beyond-Inf point (sigma p10/median/p90 1.017 / 1.121 / 1.723, flat objective) -- filter them for supply-side uses. Stage 2b gamma is superseded: gamma median 0.628 -> 0.650, opt_tariff 0.657 -> 0.649, rows 6,829,023 -> 6,814,229, convergence 69.2% -> 68.9%, tier composition unchanged (3.3/70.0/0.2/26.4). Country structural ratios (v0.7.0): gamma/(1+gamma) 0.394, 1/(sigma-1) 0.684, gamma/((1+gamma)(sigma-1)) 0.234 (Soderbery 2018: 0.408 / 0.532 / 0.217). Cost: boundary optima carry no SE and their share of clean cells doubled, so sigma-SE coverage falls 77.9% -> 63.6%, gamma-SEok62.4% -> 54.7%, andsigma_robustpasses 10.7% of rows (from 14.6%); an SE for edge optima is the first v0.7.x item. Pillar-2 validation CSVs are carried from v0.6.1 (re-capture under the new default pending). Re-pull anything consuming sigma OR omega OR gamma. Data revision:feabe6f7fbc8f98bdb596e11e81aa70bac188faa. v0.6.1 remains available pinned at revision96e1589e4b5bd0bde0b3f2643b673ee09ff9f680-- do not mix versions within one analysis.v0.6.1 (2026-09-01). Corrects the HLIML boundary search (the routing introduced in v0.6.0 for cells where neither the closed-form interior estimator nor the Step-2 fallback yields an admissible point). The v0.6.0 search minimised the profiled objective along each edge of the admissible box with a single
optimize()call, which assumes a unimodal objective; the edge profiles are multimodal, so on the two omega-edges (where sigma is free) the search could terminate at the sigma -> 1 Cobb-Douglas pole, and a value of 1 + 1e-6 then passed thesigma > 1cleanliness filter into the shipped table (patches 0038-0041). 3,286 of 30,056 v0.6.0 boundary-routed cells (10.9%) shipped at the sigma-pole (sigma <= 1.001), concentrated on the omega-floor edge. Under the corrected search **3,285 of those 3,286 are now correctlyall_inversions_failed** -- they have no admissible optimum anywhere in the box -- exactly one re-routed to a legitimate edge, and the boundary sigma-pole count is now **0** (minimum boundary sigma 1.0012). Clean Stage 1 cells move 185,144 -> 182,385 (66.0% -> 65.0%) and boundary-routed cells 30,056 -> 27,297 (equal drops of 2,759: every cell that left the clean set failed honestly). The Stage 1 sigma median moves 2.7045 -> 2.7272, the net of two effects on distinct populations -- removing the pole cells raises it +0.058 (they sat at sigma ~ 1 in the left tail), while the honest re-estimation of the remaining non-pole cells lowers it -0.035. Stage 2b gamma is superseded: gamma median 0.657 -> 0.628, opt_tariff median 0.674 -> 0.657, rows 6,860,437 -> 6,829,023, convergence 68.9% -> 69.2%, tier composition unchanged (3.3/70.1/0.2/26.4). Country structural ratios (v0.6.1): gamma/(1+gamma) 0.386, 1/(sigma-1) 0.579, gamma/((1+gamma)(sigma-1)) 0.204 (Soderbery 2018: 0.408 / 0.532 / 0.217). Pillar-2 synthetic-recovery validation was re-run under the closed-form default for the first time (its capture could not run under that default until patch 0042, so v0.6.0's Pillar-2 numbers predated the closed form): the median recovery yield rises to 98% (from 71.8%), reflecting the closed form's higher success rate, with Tier 1b consistency and Tier 2 sanity checks still passing. Of the v0.6.0 sigma-median movement attributed to the closed form (2.878 -> 2.705), roughly a third was this pole artifact; the artifact-free level is ~2.76, and v0.6.1's 2.727 reflects that net of the honest re-estimation. Re-pull anything consuming sigma OR gamma. Data revision:96e1589e4b5bd0bde0b3f2643b673ee09ff9f680. v0.6.0 remains available pinned at revision4d0987e22977a6482eeefd8d9a3d5452d907e505-- do not mix versions within one analysis.
v0.6.0 (2026-08-19). Stage 1 moves from the BFGS search to the closed-form HLIML estimator with hybrid boundary-search routing (patches 0025-0037): usable Stage 1 cells rise 50.5% -> 66.0% (141,824 -> 185,144 of 280,649; HLIML interior 62.4% of ok, Step 2 fallback 21.4%, boundary optima 16.2% with structurally unavailable SEs, adjust codes 6/7/8), and sigma moves for the first time across releases: median 2.878 -> 2.705 (IQR 1.63-5.71). Standard errors on closed-form cells use an O(n) group-sum HNCS sandwich (100% finite). Stage 2b gamma is superseded: gamma median 0.657, opt_tariff median 0.674, rows 6,860,437, tier composition unchanged (3.3/70.1/0.2/26.4). A Stage 2 analytic gradient was evaluated against the numeric default and REJECTED 22:1 under the current optimizer cascade (docs/methodology/v060_stage2_gradient_ab.md); numeric remains the default. Shipped Stage 1 cap flags corrected post-hoc for boundary corner cells (sigma_capped +1,934, omega_capped +3,328; scripts/patch_stage1_boundary_flags.R). Disclosure: saved Stage 2b row membership depends on global 0.5% tail-trim quantile bands; 2.2-2.9% of cells lack their own reference-exporter row in every release to date (ibid., Section 5). Re-pull anything consuming sigma OR gamma. Data revision:
4d0987e22977a6482eeefd8d9a3d5452d907e505. v0.5.1 remains available pinned at revision3b796a6db8a6fa1caabb37acb1e51480a3cbcaf4-- do not mix versions within one analysis.
v0.5.1 (VALIDATION-ONLY, 2026-08-18). Corrects the Pillar-2 synthetic-recovery harness:
simulate_one_cell()built the y/x1/x2 moment columns time-major while its exporter/t labels were exporter-major, so every labeled exporter was a mixture of all true exporters and the estimator was benchmarked on a no-signal design. Stage 1 sigma and Stage 2b gamma are bit-identical to v0.5.0 (production moment construction is row-wise and was never affected); only the two validation CSVs change. Corrected Tier 1a (J=25, T=30, 200 reps): yield 41-96% (median 72%); sigma median bias within +/-3% for sigma <= 3, largest at the (8, 3) corner (-46%); median coverage 91%. Tier 1b (3, 1): yield RISES with n (72% at n=150 to 99% at n=3000), sigma bias -8.8% -> -2.3%. The earlier "yield falls with n / fragility of the LIML class" reading is withdrawn. Data revision:3b796a6db8a6fa1caabb37acb1e51480a3cbcaf4. v0.5.0 remains pinned atea1c3ea464ca1ac114bf9b6c518325e8135bdc41.v0.5.0 (2026-08-18). Broda-Weinstein fn-14 weight lag corrected to the previous calendar year of the cell panel: v0.4.x took the previous retained row via a positional shift, which silently substituted a stale x_{t-2+} whenever the t-1 row had been filtered out. CLI default is now
--bw-lag calendar;--bw-lag legacyreproduces v0.4.1 bit-for-bit. Stage 1 sigma is bit-identical to v0.4.1 (280,649 cells; Stage 1 carries no BW weights) -- sigma-only consumers are unaffected. Stage 2b gamma is superseded: gamma median 0.679 -> 0.678, p95 1.949 -> 1.940, share gamma > 1 23.6% -> 23.4%, opt_tariff median 0.713 -> 0.709, tier composition unchanged (3.3/70.1/0.2/26.4); 95.2% of matched estimates moved but the median |dgamma| is 0.0024 (p90 0.16, p99 1.46) -- broad, small reweighting; membership churn 8,586 out / 8,085 in (0.12%), rows 6,831,219 -> 6,830,718. Prepared-panel gap census (HS4, country scope): 52.8% of bilateral series carry internal holes and 7.15M rows (9.1%) received a stale lag under v0.4.x, touching 91.0% of cells; those rows now take the weight-1 fallback (the same path as series-first rows), and movement is monotone in per-cell stale-row count (Spearman 0.45 on cell-max |dgamma|). Full read with the recorded prediction:docs/methodology/v041_v050_comparison.mdat GitHub tagv0.5.0. Manifest note: sha256 values for the binary.rdsfiles are now computed in binary mode; the v0.4.0/v0.4.1 manifests recorded text-mode hashes for those four files that do not match standard sha256 tools (the files themselves were always correct; hub-side checksums unaffected). Saved outputs are now canonically sorted with run metadata moved to the summary sidecar, so from this release the manifest hashes certify content. Data revision:ea1c3ea464ca1ac114bf9b6c518325e8135bdc41. v0.4.1 remains available pinned at revision5493c51f-- do not mix versions within one analysis.v0.4.1 (2026-07-25). Sign correction on Soderbery (2018) Eq. (11): the export-supply moment used x5/x6 sign conventions inconsistent with the paper (derivation and fix:
docs/methodology/eq11_sign_correction.mdat GitHub tagv0.4.1; apaper_exact_eq11flag preserves the old behavior for replication). Full test suite 120/120; estimator harness (T = 1e6) OVERALL PASS with printed-sign separation 260.9x. Sigma is unchanged from v0.4.0 (bit-identical, 280,649 cells) -- sigma-only consumers are unaffected. Stage 2b gamma is superseded: rows 6,831,402 -> 6,831,219; gamma median 0.674 -> 0.679; optimal-tariff median 0.713; tier shares and convergence stable (3.3/70.1/0.2/26.4; 70.7%). Stage-1 identification diagnostics are re-based: earlier releases overstated strength via a Sargan dof error and a non-partialled Cragg-Donald F. Corrected: strict Stock-Yogo pass 6.1% (was 17.3), G&S-25 pass 41.2% (was 58.5), Sargan pass 56.3% (was 61.7), joint 22.4% (was 28.4); G&S-protocol Sargan 74.9%. Comparison to Grant & Soderbery's 44% joint rate carries a robust-KP caveat (docs/methodology/stata_port_deviations.md). Pervasive weak identification is the empirical case for the shrinkage design (median prior weight 0.98). Lambda reviewed and retained at 0.1 after the corrected moments fired the drift trigger: a full-scale five-point sweep (docs/methodology/lambda_sweep_20260723.md) shows a flat optimum over [0.1, 0.2]; 0.1 maximizes retained heterogeneity; drift baseline reset toresults/lambda_diagnostic_v041.json. Reproducibility: an independent re-estimation reproduced this release's Stage-2b table data-bit-identically after stripping therun_metaattribute; file hashes differ across runs only through embedded run metadata (a sidecar fix is slated). Full comparison:docs/methodology/v040_v041_comparison.mdat GitHub tagv0.4.1. Data revision:5493c51f. v0.4.0 remains available pinned at revisiona76f2d7-- do not mix versions within one analysis.
v0.4.0 (2026-07-19). Full regeneration on the corrected Soderbery (2018) Eq. (10): the coefficient on the fourth import-side moment was mistranscribed in every prior release (found in a fresh-eyes audit 2026-07-17; confirmed by hand derivation, the footnote-12 homogeneity limit, and an independent structural-DGP simulation). Sigma is bit-identical to v0.3.0 on all shared columns (verified A/B, 280,649 cells) -- sigma-only consumers are unaffected. Gamma, opt_tariff, and the SE columns are superseded: the marginals move little (gamma median 0.680 -> 0.674) but 44% of cells move by more than 0.01 and 11.5% by more than 10% of their v0.3.0 value -- re-pull anything consuming gamma, opt_tariff, gamma_se_total, sigma_robust, or the weak-identification screens, and do not mix versions within one analysis. New columns: Stage 1
stockyogo_pass_gs25,stockyogo_cv_gs25,sargan_pass,gs_pass_both(the Grant & Soderbery 2024 screening protocol at their 25% rule of thumb alongside the strict 10% screen, which is unchanged at 17.3% pass; the 25% screen passes 58.5%), and Stage 2bgamma_shrink_wt(per-row share of curvature contributed by the shrinkage prior; overall median 0.98). The validation stack gains a structural-DGP pillar that simulates Eqs (5)-(6) independently of all pipeline code, and the Pillar-2 omega columns are re-based per the F10 harness correction. Full comparison:docs/methodology/v030_v040_comparison.mdat GitHub tagv0.4.0. Data revision:a76f2d7. v0.3.0 remains available pinned at revisionec59b57894cab18b2d0295c96334a96b7dd8a2cd:from huggingface_hub import hf_hub_download hf_hub_download("impex-machina/trade-elasticities", "stage2b/baci_hs92_v202601_elast_country_hs4_fixed_sigma.rds", repo_type="dataset", revision="ec59b57894cab18b2d0295c96334a96b7dd8a2cd")
v0.3.0 (2026-07-08). Full regeneration on the six-patch fix series (GitHub tag
v0.3.0). Gamma re-levels onto Soderbery (2018) Table 2 benchmarks (gamma/(1+gamma) = 0.405 vs his 0.408): gamma median rises 0.238 -> 0.680 and the implied median export-supply elasticity is now 1.47 (the prior-scale bug in v0.2.0 biased gamma down and inflated the implied elasticity). Sigma is essentially unchanged (median 2.878). Standard errors are corrected (sigma_se was understated, rho_se overstated); the weak-IV screen now uses the minimum-eigenvalue Cragg-Donald statistic (Stock-Yogo pass 59% -> 17% -- the honest number);sigma_robustpasses on 10.6% of rows. Details:docs/methodology/v020_v030_comparison.mdin the GitHub repo. v0.2.0 remains available pinned at revision7e598f6cb98e-- do not mix versions within one analysis.2026-07-10. Added exporter-cluster bootstrap SE benchmark outputs under
validation/(bootstrap_se_summary.csv, per-cellbootstrap_se_cells.csv, 736 cells): real-data calibration of the analytic sigma_se by identification stratum and estimator branch. Seedocs/methodology/validation_section_draft.md(Section 4) in the GitHub repo for results and interpretation.
Trade Elasticities -- BACI HS92 V202601
Importer-product-exporter trade elasticity estimates: heterogeneous import-demand elasticities (sigma) and inverse export-supply elasticities (gamma) estimated from CEPII BACI bilateral trade data, following Soderbery (2018) and Grant & Soderbery (2024).
This dataset holds the published outputs of the estimation pipeline. The code that produces them, full methodology, and replication instructions live in the GitHub repository:
https://github.com/impex-machina/trade-elasticities
License
Data in this dataset: CC BY 4.0. The pipeline code (in the GitHub repo) is licensed separately under MIT.
What's here
Outputs are organized by pillar. The authoritative index -- including
SHA-256 checksums and provenance -- is data/manifest.csv in the GitHub
repo; the table below mirrors its human-readable view.
| Path | Pillar | Description |
|---|---|---|
stage1/baci_hs92_v202601_elast_country_hs4_feenstra_sigma.rds |
1 | Stage 1 sigma estimates (HLIML primary, Step 2 fallback) |
stage2a/baci_hs92_v202601_elast_regional_hs4_fixed_sigma.rds |
1 | Stage 2a regional gamma with fixed sigma (since v0.13.0 at the region medians of the updated sigma) |
stage2b/baci_hs92_v202601_elast_country_hs4_fixed_sigma.rds |
1 | Stage 2b country-level gamma with shrinkage + SE |
stage2b/..._summary.rds / .txt |
1 | Country-pair summary table (binary + human-readable) |
stage2b/..._sigma_update_passes.csv |
1 | The sigma update's pass log: cells profiled / updated / at the floor / at the cap, the level, B and b_full, the rules the pass ran under (since v0.12.0) |
stage2b/..._gamma_v_refresh.csv |
1 | The gamma_V refreshes after the update: each refresh's step in gamma and opt_tariff (since v0.13.0) |
product/baci_hs92_v202601_elast_hs4_product_summary.csv |
1 | Product-level (HS4) companion table: median gamma and opt_tariff per product, sigma, counts (since v0.11.1) |
stage1/, stage2a/, stage2b/, product/ ….parquet |
1 | Parquet copies of the four tables above, checked value for value against them (since v0.11.2; the .rds / .csv are canonical) |
validation/liml_validation_tier1a.csv |
2 | Synthetic recovery: Tier 1a sigma grid |
validation/liml_validation_tier1b.csv |
2 | Synthetic recovery: Tier 1b sample-size convergence |
validation/se_calibration_mc_summary.csv |
3 | SE calibration Monte Carlo (4 regimes x 3 formulas) |
validation/se_calibration_mc_per_param.csv |
3 | Per-parameter calibration detail |
validation/bootstrap_se_summary.csv |
3 | Exporter-cluster bootstrap SE benchmark: ratio-by-stratum summary (2026-07-10 run) |
validation/bootstrap_se_cells.csv |
3 | Bootstrap SE benchmark: per-cell detail (736 reporting cells) |
The three pillars: (1) the BACI HS4 empirical core, (2) synthetic
recovery of the estimator, (3) standard-error calibration. See the
repo's docs/methodology/ for details.
Raw BACI data is NOT here
The raw CEPII BACI HS92 V202601 trade data is not redistributed in this dataset (it is CEPII's to distribute, and it is large). Download it directly from CEPII:
https://www.cepii.fr/CEPII/en/bdd_modele/bdd_modele_item.asp?id=37
Place it under data/raw/ in your clone of the repo. The pipeline reads
it from there.
Loading the outputs in R
The recommended path is to clone the GitHub repo and use the bundled loader, which reads the manifest and verifies checksums:
# from the repo root, after renv::restore()
source("R/load_outputs.R")
load_outputs() # downloads all manifested files to data/derived/
x <- readRDS("data/derived/stage2b/baci_hs92_v202601_elast_country_hs4_fixed_sigma.rds")
head(x)
To pull a single file directly from this dataset without the repo:
url <- paste0("https://huggingface.co/datasets/impex-machina/",
"trade-elasticities/resolve/main/",
"stage2b/baci_hs92_v202601_elast_country_hs4_fixed_sigma.rds")
tmp <- tempfile(fileext = ".rds")
download.file(url, tmp, mode = "wb")
x <- readRDS(tmp)
head(x)
main is the latest release. Each release is tagged here under its version
(v0.3.0 to v0.11.0, from patch 0116's runbook; every release creates its own):
put the tag in place of main (resolve/v0.10.2/) or pass revision = "v0.10.2"
to huggingface_hub's hf_hub_download() or datasets.load_dataset() to pin
one.
The validation CSVs' good column is an HS4 code with leading zeros (0102). The
dataset viewer and datasets infer it as an integer (102), so read it as a
string: data.table::fread(path, colClasses = list(character = "good")) in R,
pandas.read_csv(path, dtype={"good": str}) in Python.
Citation
If you use these data, please cite the paper (DOI to be added on publication) and the underlying sources:
- Soderbery, A. (2018). Trade elasticities, heterogeneity, and optimal tariffs. Journal of International Economics, 114, 44-62.
- Grant, M. & Soderbery, A. (2024). Heteroskedastic supply and demand estimation: Analysis and testing. Journal of International Economics, 150, 1-23. https://doi.org/10.1016/j.jinteco.2023.103817
- CEPII BACI World Trade Database, HS92 V202601.
- Downloads last month
- 386