| /******************************************************************************* | |
| This file sets the path to all directories and installs the ado packages | |
| required to replicate the results. | |
| *******************************************************************************/ | |
| * ============================================================================== | |
| * 1. DIRECTORIES | |
| * ------------------------------------------------------------------------------ | |
| * Unmark and specify location of parent directory here: | |
| *global dirroot = "SPECIFY\LOCATION\OF\PARENT\DIRECTORY\HERE" | |
| global dirroot = "C:\Users\s14759\Dropbox\London Season\Replication package" | |
| * Secondary directories as in downloaded replication package: | |
| global dirdata = "${dirroot}\data" | |
| global dirdta = "${dirroot}\programs\01_dataprep\dta-temp-files" | |
| global dirresu = "${dirroot}\results" | |
| global dirauxp = "${dirroot}\programs\04_auxiliary" | |
| * ============================================================================== | |
| * 2. INSTALL NEEDED ADO PACKAGES | |
| * ------------------------------------------------------------------------------ | |
| clear all | |
| * moss (http://fmwww.bc.edu/RePEc/bocode/m); | |
| ssc install moss | |
| * outreg2 (http://fmwww.bc.edu/RePEc/bocode/o); | |
| ssc install outreg2 | |
| * ivreg2 (http://ideas.repec.org/c/boc/bocode/s425401.html); | |
| ssc install ivreg2 | |
| * geodist (http://fmwww.bc.edu/RePEc/bocode/g) | |
| ssc install geodist | |
| * cmp (http://fmwww.bc.edu/RePEc/bocode/c); | |
| ssc install cmp, replace | |
| * distinct (http://fmwww.bc.edu/RePEc/bocode/d) | |
| ssc install distinct | |
| * weakiv (http://fmwww.bc.edu/repec/bocode/w) | |
| ssc install weakiv | |
| * coefplot (http://fmwww.bc.edu/RePEc/bocode/c) | |
| ssc install coefplot, replace | |
| * cortesti (http://fmwww.bc.edu/RePEc/bocode/c) | |
| ssc install cortesti | |
| * For small clusters | |
| ssc install clustse | |
| ssc install clusterbs | |
| do "${dirauxp}\cgmreg.do" // bootstrap-t procedure (Cameron, Gelbach and Miller, 2008) | |
| * Install grc1leg manually from http://www.stata.com/users/vwiggins | |
| * 1. Run the following line | |
| search grc1leg | |
| * 2. Click on: "grc1leg from http://www.stata.com/users/vwiggins" | |
| * 3. Click on: "(click here to install)" |