Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Last active August 10, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsvilhuber/002ffc7fa96136426a4801e1470e0189 to your computer and use it in GitHub Desktop.
Save larsvilhuber/002ffc7fa96136426a4801e1470e0189 to your computer and use it in GitHub Desktop.
Work with REPEC mirror on SDSx
/* set the local install versions to the project directory */
/* this will ensure that the project directory contains a local copy */
/* Ensure the directories exist! */
global PROJDIR "/projects/user/xyz/project1"
sysdir set PLUS "${PROJDIR}/stata/plus"
sysdir set PERSONAL "${PROJDIR}/stata/personal"
/* from https://www2.vrdc.cornell.edu/news/synthetic-data-server/step-4-using-the-sds/#Packages
and https://gist.github.com/larsvilhuber/002ffc7fa96136426a4801e1470e0189#file-sds_initialize-do */
/* define all source directories here */
global REPEC "/cac/contrib/mirror/fmwww.bc.edu/repec/bocode"
global RDPACK "/cac/contrib/mirror/sites.google.com/site/rdpackages/rdrobust/stata"
/* install all packages here */
net install estout, from(${REPEC}/e) replace
net install rdrobust, from(${RDPACK}) replace
/* In addition, occassional private ado files will be made available. */
/* On SDSx, if you intend to use them, add the following line to your Stata program */
adopath + "/cac/contrib/ado/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment