Using Stata is not something you read and understand-it's a skill you must practice. Do the exercises (some of them are straightforward applications of what you just learned others will require more creativity). This will help you retain more, and ensure you get all the details right-Stata is always happy to tell you when you're wrong.
#Stata mp commands code
Open Stata, and type in and run the example code yourself. To get the most out of Introduction to Stata you need to be an active participant. Thus this workshop will for the most part ignore Stata's graphical user interface and prepare you to write do files. Any work you intend to publish, present or rely on in any way should be done using do files. They also serve as an exact record of how you obtained your results-a lab notebook for the social scientist.
A do file contains the same commands you'd type in interactive Stata, but since they're written in a permanent file they can be debugged or modified and then rerun at will. In this approach you write your programs, called do files, and run them. The other approach is to treat Stata as a programming language. It's also very difficult to recover from mistakes-there's no "undo" command in Stata. However, interactive work cannot be easily or reliably reproduced, or modified if you change your mind. It can also be useful when you're trying to learn something new because you get immediate feedback. This can be a good way to explore your data, figure out what you want to do, and check that your programs worked properly. One is to use it as an interactive tool: you start Stata, load your data, and start typing or clicking on commands. There are two different approaches one can take to Stata.
#Stata mp commands how to
Third, to teach you how to make your Stata work reproducible right from the beginning, so you never have to unlearn any bad habits. You'll go in already knowing how Stata works and why it does what it does, so you can focus on learning the material for the course. Second, to prepare you to excel in research methods and applied statistics courses that use Stata. All the other workshops will rely on the concepts and syntax you'll learn in this workshop. It has three goals:įirst, to prepare you for the rest of the Stata track of SSCC's Data Science Tools for Research curriculum. This workshop will introduce you to Stata and its core concepts. Skip to the content that follows this video