Applications/Stata

From HPC
Revision as of 17:36, 16 March 2017 by Chris.collins (talk | contribs) (Usage Examples)

Jump to: navigation , search

Application Details

  • Description : Stata is a commercial statistical package, which provides a complete solution for data analysis, data management, and graphics.
  • Versions : Stata/SE 14.1.0
  • Module names : stata/SE/14.1.0
  • License: University of Hull, restricted to two concurrent seats

Usage Examples

Batch Submission

#!/bin/bash
#SBATCH -J Stata           # Job name, you can change it to whatever you want
#SBATCH -N 1               # Number of nodes (for Stata/SE should be always one)
#SBATCH -o %N.%j.out       # Standard output will be written here
#SBATCH -e %N.%j.err       # Standard error will be written here
#SBATCH -p compute         # Slurm partition, where you want the job to be queued 
#SBATCH -L statase:1       # Use 1 Stata/SE license (this MUST be included in State/SE job scripts 
module purge
module add stata/SE/14.1.0
 
stata-se -b do testid.do
[username@login01 ~]$ sbatch STATAtest.job
Submitted batch job 289529


Test Program

Below is a test example Stata batch file for submission to VIPER called testit.do

clear*
set rmsg on
set obs 1000000
forval n = 1/10 {
g i`n' = runiform()
}
g dv = rbinomial(1,.3)
memory

qui logit dv i*

qui xtmixed dv i*

*with bootstrap:
qui bs, reps(1000): logit dv i*

Further Information