Listing one or more variables after a command tells the command it should only act on the variables listed: The key to using the data browser effectively is being able to view the parts of the data set you care about, and the next two syntax elements will help us do that. Looking at your data is a great way to get a basic understanding of it, but even with this small data set you can't see all of it. Browse mode won't let you accidentally change your data. The browse command opens the Data Editor in browse mode, which is what you should always use unless you're doing data entry. We'll explore the elements of Stata syntax using a command that makes it easy to see what they do: Commands that can destroy data, like replace, cannot be abbreviated. Many commands can be abbreviated: sum instead of summarize, tab instead of tabulate, reg instead of regress. Normally the command itself comes first and then you tell Stata the details of what you want it to do after. They tell Stata to do something: summarize, tabulate, regress, etc. This syntax allows you to control what part of the data set the command acts on, modify what the command does, and more. If you haven't already, load the automobile data set that comes with Stata by running:Īlmost all Stata commands use a standard syntax. Skip to the content that follows this video If you're new to Stata we highly recommend starting from the beginning. This is part three of Introduction to Stata.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |