-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethinking data for IO Chart - current multi-commodity interface #70
Comments
I recommend the following:
|
To estimate commodity output for the total, we need to first estimate industry output, then apply the market shares transformation. The new API version (v1.2) and with model v2.0 will be needed in order to get the data that we need for this. We use a proxy measure of industry output, such as industry wages,
where In order to get the index of the wages vectors to match the IO model industries, we will have to map the NAICS based wages data into model sectors using the provided API sectorcrosswalk.csv where we assume the wages sector match those in the NAICS column and we aggregate it to model industries using the provided model industries column. Once you have a vector
where |
I've placed the text above at the bottom of the instructional page: Teachers and Students > Learn about Matrix Algebra During work on the new Regional Estimate of Commodity Output display, I would suggest copying and renaming the existing IO Chart code in case we need to tweak the older version for the Oct 2nd web challenge. The regional filters could use the 2-character "state" values and 7-character "geo" hash values. Fulton and DeKalb counties are: Multiple states can be conveyed as: I've been using Tabulator to display datasets for a new version of the naics list: We should probably use the term "Payroll" rather than "Wages" to match the labor statistics reporting. |
Maybe my understanding of what
Or not? Here is an example:
q_c = [ 5e6 ; # $ of commodity 1
3e6 ; # $ of commodity 2
4e6 ] # $ of commodity 3
# com1 com2 com3
A = [ 0.15 0.30 0.44 ; # commodity 1
0.50 0.11 0.22 ; # commodity 2
0.17 0.35 0.20 ] # commodity 3 To calculate the direct upstreams, you would scale each column A[:,1]*q_c[1] + A[:,2]*q_c[2] + A[:,3]*q_c[3] and this is A * q_c
# =
# 3.41e6
# 3.71e6
# 2.7e6 For # com1 com2 com3
D = [ 2.5 3.0 4.2 ; # impact 1 per 1 $
1.2 0.7 1.8 ] # impact 2 per 1 $ So, the related impacts would be calculated as: D * q_c
# =
# 3.83e7
# 1.53e7 Finally, for the downstream A[1,:]*q_c[1] + A[2,:]*q_c[2] + A[3,:]*q_c[3] and this is: q_c' * A
# = 2.93e6 3.23e6 3.66e6 |
Thank you @msrocka. I agree with your corrected formulas. I demonstrated this using the model object directly from useeior from a summary level USEEIO model CalculateUpstreamandDownstreamCommodities |
Here are samples of displaying Total Amounts that Michael (msrocka) and Leo set up: To Do: Default to Total Amounts on the Inflow-Outflow Chart using the process Wes and Michael posted above. Displayed Per Dollar when the hash value changes from vtype=total to vtype=perdollar and vtype=both. Demo using links containing these hash values on the sample page. Call the vtype=both link "Total and Per Dollar" Avoid reloading the data when the vtype hash value changes. |
Following on a discussion between @WesIngwersen @msrocka @TheTisiboth @LorenHeyns, this issue is for discussion of the IO chart reflecting the current 3-column, multiple-commodity interface
Using this implementation as an example for discussion
The text was updated successfully, but these errors were encountered: