Resources
Syntax files
  • Simple Syntax File
    This is the first example STATA syntax file. It shows some very simple operations in STATA.
  • Intermediate Syntax File
    This is the second example STATA syntax file. It shows a few more operations, recodes, and procedures.
  • Advanced Syntax File
    This is the third example STATA syntax file. It shows even more operations, recodes, and procedures.
  • Examining distributions with two variables
    This is a short STATA syntax file that shows a little more about distributions and simple transformations.
  • t-test examples
    This short syntax file shows how to do simple t-tests (independent sample and paired sample). In addition, this program shows how to use the sample size and power calculator in STATA.
  • Chi-square examples program
    This short syntax file demonstrates the chi-square test of independence using the auto data file.
  • Demo of how to reproduce the chi-square distribution
    This program shows how you can produce the chi-square distribution for various degrees of freedom by drawing random variables from a normal distribution.
  • ANOVA examples
    This program shows how do do ANOVAs and post-hoc tests using STATA. This program uses the GSS96_small dataset.
  • Regression example #1
    This program shows how do do simple OLS regression, robust regression, and some regression diagnostics using STATA. This program uses the GSS96_small dataset.
Data files