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 documented it
publication and review, how to interact with the Stata community
online, and more.
Videos, lessons, examples, and exercises combine to develop your Stata skills.
Internet web browser, installed and working (Course is platform independent.)
Course content
Expand all sections
Lesson 1: Introduction to the Stata Interface
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: Working with data
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
Lesson 3: Importing data into Stata
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: Merge and append multiple datasets
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
×
We use cookies
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Privacy policy
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Advertising and performance cookies
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.