Natural-Experiments-Using-R-Project

Natural Experiments Using R: Replication Project

Authors: Andri O. Gerber1, Stefan Durrer2

This repository contains the course assessment for Natural Experiments Using R at the Lucerne University of Applied Sciences and Arts. It provides a full replication of Andersson (2019), which evaluates the impact of Sweden’s 1991 carbon tax on transport sector emissions using the Synthetic Control Method.

Getting Started

  1. Install the required R packages:
    install.packages(c("tidyverse", "DataExplorer", "ggplot2", "psych", "Synth", "dplyr", "knitr", "kableExtra", "gridExtra"))
    
  2. Open Natural-Experiments-Using-R-Project.Rproj in RStudio.
  3. Knit Main.Rmd to produce the reproducible HTML report.

The resulting report Main.html includes descriptive statistics, implementation of the Synthetic Control Method and a discussion of the carbon tax effect.

Directory Structure

πŸ“¦ Natural-Experiments-Using-R-Project
 ┣ πŸ“‚ data
 ┃ ┣ πŸ“œ andersson_2019.csv
 ┣ πŸ“‚ pdf
 ┃ ┣ πŸ“œ 6.3_Andersson_2019.pdf
 ┃ ┣ πŸ“œ Appendix.pdf
 ┃ ┣ πŸ“œ Assignment.pdf
 ┃ ┣ πŸ“œ HΓΆhle.pdf
 ┃ ┣ πŸ“œ Koch.pdf
 ┃ β”— πŸ“œ Pretis.pdf
 ┣ πŸ“‚ pictures
 ┃ ┣ πŸ–ΌοΈ hslu-logo.jpg
 ┃ β”— πŸ–ΌοΈ pic_1.png
 ┣ πŸ“‚ video
 ┃ β”— πŸŽ₯ Replication_of_Andersson_2019_by_Gerber.mp4
 ┣ πŸ“œ .gitignore
 ┣ πŸ“œ .RData
 ┣ πŸ“œ .Rhistory
 ┣ πŸ“œ Natural-Experiments-Using-R-Project.Rproj
 ┣ πŸ“œ Main.Rmd
 ┣ πŸ“œ README.md
 ┣ πŸ“œ knitr_configuration.Rmd
 β”— 🌐 Main.html

Components of the Project

Citation

When using this material, please cite Andersson (2019) as the original study and reference this replication project accordingly.

  1. Email: andri.gerber@stud.hslu.ch. Department of Business, Lucerne University of Applied Sciences and Arts, Lucerne, Switzerland. HSLU. ORCiD ID.Β 

  2. Email: stefan.durrer@stud.hslu.ch. Department of Business, Lucerne University of Applied Sciences and Arts, Lucerne, Switzerland. HSLU.Β