cluster:stata
Differences
This shows you the differences between two versions of the page.
cluster:stata [2018/10/01 18:04] – created mcloughlin | cluster:stata [2024/11/11 20:53] (current) – removed mcloughlin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Stata ====== | ||
- | Please contribute to this page by including any helpful tips or suggestions related to Stata or it's use on different operating systems. | ||
- | |||
- | ===== Running Stata on the Cluster ===== | ||
- | The cluster contains v14 of both Stata/IC and Stata/MP. (To run your jobs using Stata/IC instead of Stata/MP, please use '' | ||
- | |||
- | You can run the text-based interface of Stata interactively on the cluster with: | ||
- | < | ||
- | stata-mp | ||
- | </ | ||
- | |||
- | or if you have an setup [[X Forwarding]] (see also [[http:// | ||
- | < | ||
- | xstata | ||
- | </ | ||
- | |||
- | You can also run a .do file in batch mode with | ||
- | < | ||
- | stata-mp -b do dofile.do | ||
- | </ | ||
- | |||
- | To allow your do-file to continue running when you log off from your terminal, preface the command with " | ||
- | < | ||
- | nohup stata-mp -b do dofile.do & | ||
- | </ | ||
- | |||
- | This is very useful because it means you don't have to keep your terminal or even your computer running - you can log off of the cluster, log off of the lab PC you're using, and then come back to the cluster when your job is done, even from another computer. | ||
- | |||
- | For more information on how to run your Stata command in the background, see [[Managing_Jobs|Managing Jobs]] | ||
- | |||
- | ==== Temporary Files ==== | ||
- | By default, Stata saves tempfiles (from -tempfile- or -preserve-) to / | ||
- | < | ||
- | export STATATMP=$HOME/ | ||
- | </ | ||
- | |||
- | One reason you might want to do this is that files are removed from / | ||
- | |||
- | ==== Package ==== | ||
- | Problem: Stata Doesn' | ||
- | |||
- | Solution: You install them the same way on the cluster as you initially did at home: | ||
- | < | ||
- | ssc install outreg | ||
- | </ | ||
- | |||
- | You will then have a folder installed within your home directory called " | ||
- | |||
- | === Helpful Files and Links from Raymond Guiteras === | ||
- | [[http:// | ||
- | |||
- | StataCorp maintains an archive of notes and presentations from past Stata Users' Group meetings. Many of these presentations are extremely useful and enlightening. The archive page is located at [[http:// | ||
- | |||
- | Some presentations that are especially useful and educational are: | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | The Stata Journal is a nice resource, especially the Mata Matters articles. Issues that are more than 3 years old are available free. Here are links to a few articles that are particularly handy: | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | ==Tips from Students== | ||
- | * Use the [[http:// | ||
cluster/stata.1538417082.txt.gz · Last modified: 2018/10/01 18:04 by mcloughlin