Course length: 7 weeks (5 lessons)See dates.
Learn how to create and debug your own commands that are indistinguishable from the commands in Stata. You will be able to parse both standard and nonstandard Stata syntax using the intuitive syntax command, to manage and process saved results, to post your own saved results, to process by-groups, to create data management commands, to program your own maximum-likelihood estimator, and more. In short, learn to create commands that act just like the commands that ship with Stata.
Note: This course is platform independent. You can use Stata on Windows, Mac or Linux.
Lesson 1: Parsing Stata syntax/Stata programming basics
Lesson 2: Parsing Stata syntax, continued: Quotes, returned results, and subsamples
Lesson 3: Using scalars and macros and introduction to low-level parsing
Note: There is a one-week break between the posting of Lessons 3 and 4; however, course leaders are available for discussion.
Lesson 4: Returning results and writing estimation commands
Lesson 5: List processing, controlling program output, and naming conventions