USEPA / useeior

Estimating potential environmental impacts of goods and services in the US economy
MIT License
31 stars 19 forks source link

`getNAICStoBEAAllocation` invalid for two region models #296

Closed bl-young closed 2 months ago

bl-young commented 3 months ago

Generating totals by sector for select sectors requires allocating NAICS data to BEA sectors (for 1:many mappings).

For two region models, location is not considered for creating these allocation factors when using industry output to allocate:

https://github.com/USEPA/useeior/blob/ae9d9694479d680084556323471eadfdb1def968/R/CrosswalkFunctions.R#L25-L28

As a result, the allocation factors are too small; they should sum to 1 for each region and NAICS. The result is a slight loss in emissions data for some sectors (primarily gov't and housing sectors)