This repository provides the code, data, and software instructions needed to compile the paper Activist directors: determinants and consequences..
Assuming that you have the ability to install software, setting up your computer so that you can compile the paper in this repository is straightforward and takes just a few minutes. We list the required steps below and also provide a video demonstrating some of these steps here.
Download and install R. R is available for all major platforms (Windows, Linux, and MacOS) here.
Download and install RStudio. An open-source version of RStudio is available here.
Install required packages from CRAN. CRAN stands for "Comprehensive R Archive Network" and is the official repository for packages (also known as libraries) made available for R. In this paper, we make use of a number of R packages. These can be installed easily by running the following code in RStudio.[^1]
install.packages(c("DBI", "duckdb", "base", "car", "doBy", "lfe", "lmtest",
"plm", "psych", "quantreg", "sandwich", "stargazer",
"survival", "texreg", "tidyverse", "tinytex", "xtable", "zoo"))
tinytex::install_tinytex()
tinytex::tlmgr_install(c("harvard", "mathpazo", "courier","psnfss",
"hyperref" ,"natbib", "palatino", "paralist",
"parskip", "titlesec", "setspace", "pdflscape"))
Download this repository.
Open this repository in RStudio.
This will means opening the file activist_director.Rproj
in RStudio.
Open the file drafts/activist_directors.Rnw
.
Click "Compile PDF" in RStudio.
[^1]: You can copy and paste the code into the "Console" in RStudio.