Introduction to Stata

Stata is a statistical software that is used for estimating econometrics models. For more information, please check the Official Stata website.

In this Introduction to Stata video, you will learn about how to use the Stata software to read data sets, do basic statistical analysis, and get familiar with the program so that we can use it for more sophisticated econometrics models.

Stata Programs and Data

Introduction to Stata: Topics

  • Stata website and purchasing Stata

  • Advantages and disadvantages of Stata

  • Programs – Stata do files (.do)

  • Data files – stata data files (.dta) and csv files

  • Data editor – where data are imported to

  • Log files - where output is saved

  • Importing and exporting data – insheet for csv files, use for dta files

  • Summarizing and analyzing data – describe, summarize, tabulate, bysort, correlate

  • Modifying data sets – rename, replace, drop, gen, egen, xi

  • Collapsing and merging data sets – collapse, merge

  • Statistical analysis (t-test and regression) – ttest, reg

  • Using global statements - global

  • Ado files - additional commands for specialty topics

  • Using help