This repository provides input data and R code for reproducing the work conducted for the Applied Energy paper: Title: "Moving from final to useful stage in energy-economy analysis: a critical assessment". doi: 10.1016/j.apenergy.2020.116194 #### LICENSE #### The dataset is shared under CC-BY-4 license. However, please note that: - Economic data are taken from the Penn World Table and thereafter indexed; so citing the Penn World Table when reusing these data is required: "Feenstra, Robert C., Robert Inklaar and Marcel P. Timmer (2015), "The Next Generation of the Penn World Table" American Economic Review, 105(10), 3150-3182, available for download at www.ggdc.net/pwt" - Primary energy and final energy data are taken from the International Energy Agency's 2018 World Energy Extended Balances and thereafter indexed; so citing the International Energy Agency's 2018 World Energy Extended Balances when reusing these data is required, "IEA. World Energy Balances 2018 Edition - Database Documentation. Technical report, International Energy Agency, 2018." #### FILES #### ## input_data.csv ## The file provides indexed time series for the economic and energy data used for the analysis. Encoding: UTF-8; end of line: \n; no encapsulation. Column names stand for: - Year: year of the observation; - iYear: year starting at 0; - PE: primary energy indexed to 1960 (from International Energy Agency and own indexation); - PX: primary exergy indexed to 1960 (own calculations); - FEG: gross final energy indexed to 1960 (from International Energy Agency and own indexation); - FXG: gross final exergy indexed to 1960 (own calculations); - UEG: gross useful energy indexed to 1960 (own calculations); - UXG: gross useful exergy indexed to 1960 (own calculations); - rgdpe: expenditure-side real gdp in PPP (from Penn World Table; own indexation); - rgdpo: output-side real gdp in PPP (from Penn World Table; own indexation); - rgdpna: real gdp (from Penn World Table; own indexation); - L: total hours worked (from Penn World Table; own indexation); - Ladj: total hours worked multiplied per human capital index (calculated from Penn World Table); - K: capital stock (from Penn World Table, own indexation); - Kserv: capital services (from Penn World Table; own indexation). ## granger_causality_testing.R ## This script reads the input_data.csv file and conducts all the causality tests reported in the paper. When running the script, the user obtains a results data frame that can then be used to make graphs with the plotting_causality.R script. R and package versions are provided in the script. ## plotting_causality.R ## This script reuses the results data frame obtained as output from the granger_causality_testing.R script and creates all plots reported in the paper. R and package versions are provided in the script. ## fitting_apfs.R ## This script reads the input_data.csv file and conducts all the fits reported in the paper. It also contains code to create all the figures reported in the paper. R and package versions are provided in the script.