AEM_4110_Stata_091408_tutorial - AEM 4110 STATA Tutorial...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
AEM 4110 STATA Tutorial This tutorial was written to give you a basic understanding of STATA. It provides many commands that you will find useful for homework and your project. There are many more commands that you will need to learn at some point, so the hope is that using these basic commands you will become comfortable enough with STATA to figure out the other commands when they are needed. This document does not provide any discussion of results. What the output means is for you to learn using the lectures and books. Most likely, this will be more difficult than learning how to run STATA. If you would like to work through some of the commands from this guide, use the demo.dta dataset which is available on blackboard. Help STATA’s help menus are in general quite good, but a bit difficult for beginners to understand. Along with a detailed description of each command, the help entry should give you all the options that are available. Each help entry should also include some example code from which you can get the syntax. One of the problems with the help menu is that it quite dependent on the user knowing which command to use. It is much less useful if you know the test or operation you would like to do, but do not know its command in STATA. That said it will save you time in the future if you get comfortable with the help menu now. To access the help menu for a known command you can go through the menus (‘Help’ - > ‘Contents’) or you can enter: help in the command window. If there is a specific command you want help with enter: help command name . For example, help summarize will bring up the help entry for the summarize command. Basic Commands STATA has two main ways to access commands. The first, and most beginner friendly way, is to go through the menu system. Here the commands are nicely grouped and the syntax is done for you. Simply find the operation that you want to perform and fill in the desired fields. The second method is to input the code for each command in the command window or a do-file. When getting to know the program, or when looking for a new command, it is easier to go through the menus. When you go through the menu system the command you select is executed. You can view what the command is in the results window. Example: Regressing y onto x1 and x2 through the command windows (‘Statistics’ - > ‘Linear models and related’ – ‘Linear regression’) executes the command regress y x1 x2 . You can see that this is what was executed by reading the code just before the output (see below).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
_cons 9657.754 1346.54 7.17 0.000 6969.3 12346.21 x2 666.9568 342.3559 1.95 0.056 -16.5789 1350.492 x1 -271.6425 57.77115 -4.70 0.000 -386.9864 -156.2987 y Coef. Std. Err. t P>|t| [95% Conf. Interval] Total 576796959 68 8482308.22 Root MSE = 2558.5 Adj R-squared = 0.2283 Residual 432042896 66 6546104.48 R-squared = 0.2510
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 7

AEM_4110_Stata_091408_tutorial - AEM 4110 STATA Tutorial...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online