Ben Young (ERG)
Ben Young (ERG)
This is resolved in https://github.com/KeyLogicLCA/ElectricityLCI/pull/14. @dt-woods do you anticipate this getting included in v2?
Leaving this as draft for now as it may require further discussion.
A few notes about this approach: - Sectors for which have no final demand (e.g. "211") will have coefficients of 0 in the M matrix, even if values exist in...
> * I had assumed that for all sectors, the M value for any flow and sector would be somewhere in between the value for `M_m` and `M_d`, but this...
@WesIngwersen see the commit above which is using ratios from the domestic production demand vector relative to the import consumption demand vector, which I'm not sure is quite right still
> Have you made any scripts for testing this with different models? The automated model builds include `USEEIOv2.3-GHG` and `USEEIOv2.3-s-GHG`, as well as a two region model (GA) with IEFs...
the detail model is failing for S00900 Rest of World Adjustment. total imports for that sector are negative, so the ratios are dr > 1, and mr
> That's OK, that should not be an issue - we always have exceptions with RoW adjustment since its an accounting correction row and meaningless for use in the model....
Confirmed that the validation passes for summary model and 2R GA model, and prints the failures for the detail model: 
by building $M$ in this way, which is to say, right after $M_m$ and $M_d$, means that $N$ is produced automatically https://github.com/USEPA/useeior/blob/e232ca115ee63a513b644950a04f533542888407/R/BuildModel.R#L72-L83