Intro_stata - GETTING STARTED WITH STATA FOR MS WINDOWS: A...

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

View Full Document Right Arrow Icon
1 GETTING STARTED WITH STATA FOR MS WINDOWS: A BRIEF INTRODUCTION by Robert A. Yaffee yaffee@nyu.edu Statistics, Social Science, and Mapping Group Academic Computing Services Information Technology Services New York University (212) 998-3402 January 2002 Acknowledgment : I am deeply indebted to Mario A. Cleves, Ph.D., Director of Biostatistics , STATA, for his invaluable and gracious editorial assistance in the preparation of this document. A. Invocation of STATA on a Windows Platform a) Starting Stata is done by double-clicking on the WSTATA icon The following display (with background and foreground colors that you can modify) will appear on your monitor Figure 1 Stata Window Layout B. Interrupting Stata: Hit control-Break or control Z or the red button with an x in it that is on the STATA toolbar, and the execution of the last command will end, without your exiting Stata C. Exiting Stata can be done by typing Exit in the command window and hitting the enter key II. Setup
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 There are four windows . You enter your commands in the Command Window. The Review Window records your commands. The Results window displays your output. The variables window lists the variables in the data set you are using. The Results window is the Log Window. This can be named, save, and reused later. One can do this by typing log using filename . (At this juncture, I would point out that I bold and italicize STATA commands to distinguish them from ordinary text, even though they are not actually entered into the command window bolded or italicized. Moreover, because STATA is case sensitive, it is important to take note of when lower and upper case characters are used.) When one is finished using it, he can close it with by typing the command , log close . In the header bar at the top of the screen is a list of topics: File, Edit, Prefs, Window, and Help. The Help option in the Header bar provides a Contents option and a Search Option. The ‘Contents’ option can be used by beginners unfamiliar with STATA commands. The ‘Search’ option can be used by users who know the name of the command or topic they wish to search. If one wishes to obtain answers to frequently asked questions and the like, he can go to the STATA web site, at http://www.stata.com , where he can find many useful links, resources, and available publications on how to use STATA. Figure 2 The Help Options The Display Colors of the display may be adjusted by going into the Prefs window, clicking on general preferences, and selecting the background colors for the different windows.
Background image of page 2
3 C. Logging your own work: a) It is generally advisable to keep a log of your work session. Persons working on research projects can then review what they have done and have not completed. b) To create a log file in which your commands and their output are recorded, you can type in the command window : log using filename i) Filename is any name you wish to give your log file.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 40

Intro_stata - GETTING STARTED WITH STATA FOR MS WINDOWS: A...

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

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