File size: 2,177 Bytes
f81d4f9 |
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
/*******************************************************************************
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)" |