Sovereign 8s.is mirror of standardgalactic/Energy_Burden_Electrification
  • R 97.8%
  • Python 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-06-29 22:40:01 -04:00
Atlanta Add files via upload 2025-06-12 10:40:50 -04:00
Baltimore Add files via upload 2025-06-12 10:44:41 -04:00
Boston Add files via upload 2025-06-12 10:49:27 -04:00
Buffalo Add files via upload 2025-06-12 10:51:20 -04:00
Charlotte Add files via upload 2025-06-12 10:57:39 -04:00
Chicago Add files via upload 2025-06-12 10:58:40 -04:00
Columbus Add files via upload 2025-06-12 11:00:45 -04:00
Dallas Add files via upload 2025-06-12 11:50:32 -04:00
Detroit Add files via upload 2025-06-12 11:53:01 -04:00
Houston Add files via upload 2025-06-12 12:00:41 -04:00
Jacksonville Add files via upload 2025-06-12 12:02:55 -04:00
KansasCity Add files via upload 2025-06-12 12:08:45 -04:00
LasVegas Add files via upload 2025-06-12 12:10:14 -04:00
LosAngeles Add files via upload 2025-06-12 12:11:25 -04:00
Memphis Add files via upload 2025-06-12 12:12:43 -04:00
Miami Add files via upload 2025-06-12 12:13:46 -04:00
Minneapolis Add files via upload 2025-06-12 12:15:55 -04:00
Nashville Add files via upload 2025-06-12 12:16:46 -04:00
NewOrleans Add files via upload 2025-06-12 12:18:26 -04:00
NewYorkCity Add files via upload 2025-06-12 12:19:21 -04:00
Oklahoma Add files via upload 2025-06-12 12:20:21 -04:00
Orlando Add files via upload 2025-06-12 12:21:14 -04:00
Philadelphia Add files via upload 2025-06-12 12:22:54 -04:00
Phoenix Add files via upload 2025-06-12 12:24:12 -04:00
Portland Create readme 2025-06-12 10:26:07 -04:00
SanFrancisco Add files via upload 2025-06-12 12:26:31 -04:00
Seattle Add files via upload 2025-06-12 12:27:36 -04:00
StLouis Add files via upload 2025-06-12 12:28:30 -04:00
README.md Update README.md 2025-06-29 22:40:01 -04:00

Reproduction Code for:

"Efficient Electrification and a Warming Climate Could Act Together to Keep Energy Burdens in Check"

This repository contains the code used to reproduce the results presented in the paper:
"Efficient Electrification and a Warming Climate Could Act Together to Keep Energy Burdens in Check."


Overview of Scripts

Energy Consumption Simulation (Four Scenarios)

The following R scripts simulate household electricity consumption under four combinations of HVAC systems and climate scenarios:

  • Step3a_CurrentHVAC_HistoricalWeather.R
  • Step3b_CurrentHVAC_FutureWeather.R
  • Step3c_FutureHVAC_HistoricalWeather.R
  • Step3d_FutureHVAC_FutureWeather.R

Scenarios Modeled:

  • Current HVAC with historical climate
  • Current HVAC with future climate
  • Future HVAC with historical climate
  • Future HVAC with future climate

Data Preparation for IPF

  • Read_MicroData.R: Reads American Housing Survey (AHS) microdata to initialize the Iterative Proportional Fitting (IPF) method.
  • Process_CSV.R: Processes American Community Survey (ACS) data to calculate marginal category probabilities.
  • IPF_Probability_Table.py: Performs multi-dimensional IPF to generate the final joint probability table.

Energy Burden Calculation

CHHW: Current HVAC with Historical Weather;
CHFW: Current HVAC with Future Weather;
FHHW: Future HVAC with Historical Weather;
FHFW: Future HVAC with Future Weather;

  • Stepn_Energy_Burden_CHFW.R:
    Computes the annual electricity bill for each household based on the fitted probability table.
    Upsamples the dataset to create a simulated population of 10,000 households.

  • Stepn_Energy_Burden_CHFW12months.R:
    Calculates monthly energy burdens.
    Also upsamples to a 10,000-household simulated population.


Visualization Scripts

  • Plot_Box_2month_violin.R:
    Generates violin plots of monthly energy burdens for July and January (as shown in the paper).

  • Plot_Box_2month_Top10_violin.R:
    Plots monthly energy burdens for the top 10% highest-burden households in July and January.

  • Plot_Box_1year_violin.R:
    Creates violin plots for annual energy burdens.


Contact

For questions about this code, please contact yiminghit@gmail.com.