How-to: Using STATA
NOTE: Please be sure to properly exit STATA by closing the window running it when you are finished with your work. Closing a window in MobaXTerm or PuTTY can ultimately lead to an I/O Disk Full Error
FOR WINDOWS USERS
You will follow the directions here for VcXsrv and then PuTTY, but when you get to number 4 in the PuTTY instructions you will want to use another address (not head.its.albany.edu):
lmm.its.albany.eduand then save the session as “LMM” instead of “head”. Everything else is the same.
Once you are down to step 7 in that article enter the following on the command line to load STATA:
module load stataThen you can use one of the following.
The code below will launch the GUI:
xstata-mpTo run batch jobs directly from the command line use:
stata-mp -b do my_analysis.doFOR MAC USERS
You will follow the directions here for XQuartz and then Terminal here, but when you get to number 3 in the Terminal instructions you will want to use another address (not head.its.albany.edu):
ssh -Y [netid]@lmm.rit.albany.edu
Everything else is the same.
Once you are down to step 7 in that article enter the following on the command line to load STATA:
module load stataThen you can use one of the following.
The code below will launch the GUI:
xstata-mpTo run batch jobs directly from the command line use:
stata-mp -b do my_analysis.doTemporary Directories
If you know/anticipate that you will be working with large files, you need to specify a location where temporary files will accumulate by running:
export STATATMP=/your/stata/tmp_file/directory/here
mkdir -p $STATATMPThis will prevent the /tmp directory from filling up and stopping your analysis unexpectedly.