add analysis and summary of trade data approach for #527 - #557
Open
bl-young wants to merge 3 commits into
Open
Conversation
WesIngwersen
marked this pull request as draft
July 31, 2026 17:39
Member
|
@bl-young I've decided it would be more prudent to have a base branch for this nowcast work. Pull all intermediate steps in to this branch rather than main. The pull into main will be the very end. We will keep nowcast fresh with main updates by occassionally pulling in main. |
WesIngwersen
marked this pull request as ready for review
July 31, 2026 17:41
Member
|
Here is something I wasn't clear enough about. I think we should just gear this toward SUT Supply Use 2017 as the target diagnostic. For imports this means we need to target not F0500 but the following cols from the Use table: MCIF (imports in CIF), MADJ (CIF/FOB Adjustments on Imports) as well as MDTY (Import duties). A following step beyond the scope of this work will be to convert this into MUT but that will be done with the full SUT -> MUT conversion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cc:
Closes: #527
Adds analysis and write-up associated with exploration of trade data.
Summary
Trade data for F04000 / F05000 — intended plan
Decision: Use Option 1 — Census trade in goods + BEA trade in services as the primary annual extract. Scale / constrain national totals to BEA ITA goods+services controls. BACI is out of scope for this F040/F050 work.
Background and 2017 test results:
trade_data_source_options_527.md. Longer plan notes (annual summary IO check,compare()results):plan_527_long.md.What we are building
Annual initial estimates for Use-table F04000 (exports) and F05000 (imports) for nowcast years, aligned as closely as practical with the 2017 detailed SUT/MUT (exports PUR; import valuation consistent with Supply CIF / MCIF), with national goods+services totals controlled to ITA.
Source roles
GEN_CIF_YR) to match Supply CIF; exports FAS-family (ALL_VAL_YR). Customs (GEN_VAL_YR) available if combining with services needs a no-double-count diagnostic.IntlServTradeS00300,S00900, wholesale/margins)Not used: CEPII BACI / ceda BACI — FOB, goods-only, share-oriented; not needed for US F040/F050 levels or ITA-controlled totals.
Where to pull implementation from
imports—Census_USATrade,BEA_IEAmasteryet.import_emission_factors/— especiallyconcordances/Census_to_useeio2_sector_concordance.csv,BEA_service_to_useeio2_sector_concordance.csvbedrock/utils/mapping/naics/NAICS_to_BEA_Crosswalk_2017.csvDo not treat USEEIO’s
download_imports_data.pyas the production extract — it is imports-only. Prefer flowsaimportsFBAs, then map with USEEIO/bedrock concordances.Pipeline (conceptual)
Known gaps to close before “recreates 2017”
533000IP-like, travel, etc.); extend concordance.S00300,S00900, wholesale) — explicit hold-from-Use or residual policy.imports+ ITA totals into bedrock’s extract/FBA path, then FBA/FBS → nowcast.Implementation order (#528)
Census_USATrade+BEA_IEAinto bedrock’s extract path; add ITA 2.1/3.1 totals for the control step.