SESSION I: GETTING STARTED
- Stata’s GUI
- Stata File formats
- Interacting with your Operating System from within Stata
- Working interactively in Stata
- Organizing one’s work in Stata
- Help
- Web resources
- Updates
- Downloading user written commands in Stata
- Interrupting Stata Sessions
- Loading Stata databases
- Saving databases in Stata
- Saving output: the log file
- Exiting the software
SESSION II: STATA FUNDAMENTALS
- Visualizing the data
- Stata’s Syntax
- Abbreviations in Stata
- Constrained commands
- Data Types
- Format command
- Labels
- Value Labels
- Summarizing the data:
- Summary Statistics
- Statistical Tables
- The by prefix
- Selecting / eliminating variables – drop, keep
- The commands count and sort
- Renaming variables – rename
- display
- assert
- Missing Values
- Create, eliminate, transform data
- generate, egen, replace, recode
SESSION III: CREATING SIMPLE STATA ROUTINES: DO FILES
SESSION IV: IMPORTING DATA FROM SPREADSHEETS
- Importing an Excel file using drop down menus
- Importing an Excel directly in Stata: import excel
- Importing a text file created from a spreadsheet: insheet
- Importing a text file: import delimited
- Importing SPSS databases
- Verifying the Data
- Likely Issues:
- Missing values
- Strings: encode, decode, destring, tostring
- Handling dates
- Exporting data to ASCII/txt files to be read in spreadsheets: outsheet
SESSION V: MERGING DATA BASES
- The concepts master and using databases
- append command
- Merging data
- merge command
- Merging one to one by observations
- Merging one to one using one or more unique identifying variables
- How do we make sure the identifying variables are unique
- The system variables _merge
- updates command
- Use the append and merge commands
- The concepts of wide and long data format
SESSION VI: GRAPHICS – AN INTRODUCTION
- Stata graphics
- Graph command syntax
- Reading, saving and exporting graphs
- Useful commands
- Overview of various graph types
- Personalizing a graph
- The Graph Editor
- Combining and overlaying graphs
SUGGESTED READINGS
- Alan Acock (2018). A Gentle Introduction to Stata. 6th Edition, Stata Press.
- Kohler, Ulrich, & Kreuter, Frauke (2012). Data Analysis Using Stata. 3rd Edition, Stata Press.
- Mitchell, Michael N. (2020). Data Management Using Stata: A Practical Handbook. 2nd Edition, Stata Press.