Skip to content
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

tabfig: Visualize pop vs. climate decomposition results #38

Open
FanWangEcon opened this issue Feb 7, 2024 · 0 comments
Open

tabfig: Visualize pop vs. climate decomposition results #38

FanWangEcon opened this issue Feb 7, 2024 · 0 comments
Assignees
Labels

Comments

@FanWangEcon
Copy link
Member

FanWangEcon commented Feb 7, 2024

Visualize pop vs. climate decomposition results

Show in table and figure decompositional changes population versus climate.

Outputs

Table output, all locations joint and regional, a table with 9 columns of temp stats:

  • rows: temperature thresholds (more selected subset)
  • row-groups: threshold groupings
  • row-big-groups: national and then two regionals
  • col 1-3: same as mean all hours, do not show percentage changes to avoid confusion
  • col 4-6: shift pop decompose, level, pp vs 1990, share of 1990 2020 gap
  • col 7-9: shift temp decompose, level, pp vs 1990, share of 1990 2020 gap

Algorithm

Step 1, Generate data structures for outputs

To implement the outputs:

  1. Combine jointly mean results and decompose files. Decompose type is "yeartype", year to string, year var also yeartype
  2. Reshape yeartype from long to wide
  3. Generate points changes, and share of gap
  4. National + regional aggregate file for Table A

Step 2, generate Table A

Table A for National + Eastern + Northeastern.

Step 3, generate Table B

Table A for Central + Western regions.

@FanWangEcon FanWangEcon self-assigned this Feb 7, 2024
FanWangEcon added a commit that referenced this issue Feb 11, 2024
- Code for generating input files national and regional decompose tables
- Input data files for tables and output tex files for tables
FanWangEcon added a commit that referenced this issue Feb 12, 2024
- multiple panel national + regional results
- renaming files
- deleting prior regional and national separate files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant