Learn Stata

Introduction to Stata

NetCourse 101

NetCourse®101: Introduction to Stata

Course length: 6 weeks (4 lessons)

See dates.


Learn how to use all of Stata's tools and become a sophisticated Stata user. You will understand the Stata environment, how to import and export data from different formats, how Stata's intuitive syntax works, data management in Stata, matching and merging, how to analyze subgroups of data, how to reproduce your work and document it for publication and review, how to interact with the Stata community online, and more.

This NetCourse consists of videos, lessons, examples, and exercises combine to develop your Stata skills.


  • Stata 18 installed and working
  • Knowledge of your computer
  • Internet web browser, installed and working

Note: This course is platform independent. You can use Stata on Windows, Mac or Linux.

Trainer: Kerry Kammire


Trainer: Derek Wagner


Course content

Lesson 1
  • Sample session
  • Main Stata window
    • Menus and dialogs
    • Command and Results windows
    • Review window
    • Variables window
  • Data Editor
    • Renaming and formatting variables
    • Hide, show, and order your data
  • Viewer
    • Installing user-written commands
  • Do-file Editor
  • Graph window and Editor
Lesson 2
  • Current working directory
  • Loading and saving data
  • Working with data
    • Stata’s command syntax
    • The data in memory
    • Value labels
    • Formats
    • Notes
    • Other kinds of labels
  • Keeping logs
  • Safe computing
  • Basic data reporting
  • Data manipulation
  • Making strings into numerical categorical variables
    • Doing things the long way
    • The second solution
    • The best solution
  • Observation subscripts _n and _N
  • Memory management

Note:There is a one-week break between the posting of Lessons 2 and 3; however, course leaders are available for discussion.

Lesson 3
  • Obtaining data
  • Import and export Excel data
    • import excel
    • export excel
  • Import and export text data
    • import delimited
    • export delimited
  • Other commands to import and export data
    • Import and export data from and to a database (ODBC)
    • Undelimited text data
    • Import and export SAS XPORT files
    • Import Haver databases
    • Import Federal Reserve Economic Data
    • Translate shapefiles
  • Reading dates and times
Lesson 4
  • Appending data
  • Merging data
    • Notes about merge
    • Merge with repeated variables
  • An example of append and merge
  • Wide versus long data
  • How to think about variables and their contents