generated from Gutschlhofer/carbon_emissions_EU
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.R
33 lines (20 loc) · 1.09 KB
/
main.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Packages and shapefile -------------------------------------------------------
## NUTS3, exclude oversea regions/countries, calculate area, add Kosovo and Bosnia
source("code/00_libraries_functions.R")
# Download and prepare data ----------------------------------------------------
## EDGAR: GHG emissions
source("code/01_download_EDGAR.R")
## Eurostat: all independent variables
source("code/02_download_eurostat.R")
# Combine data -----------------------------------------------------------------
source("code/03_combine_data.R")
# Provide and visualise input data ---------------------------------------------
source("code/04_visualise_input.R")
# Run OLS ----------------------------------------------------------------------
source("code/05_model_OLS.R")
# Run spatial tests ------------------------------------------------------------
source("code/06_spatial_tests.R")
# Run spatial cross-sectional models -------------------------------------------
source("code/07_model_spatial.R")
# Run spatial panel models -----------------------------------------------------
source("code/08_panel.R")