This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: STATA Problem Set #1- Mann B30B The data sets and the data set descriptions are available on Blackboard. Note that they are also available online: http://wps.aw.com/aw_stock_ie_2/50/13016/3332253.cw/index.html These instructions pertain to the computers in Mann computer lab B30B. If you are in Mann B30A, you would need to change “B30B” to “B30A” in all of your commands. Example problem: caschool.do 1) Download caschool.dta (STATA data file) from Blackboard to the My Documents folder (right-click on file and save): "C:\Documents and Settings\B30B\My Documents\caschool.dta" 2) Download caschool.do from Blackboard to the My Documents folder (right-click on file and save). A STATA do file lists the commands that STATA will execute. Right- click the file and open it with Notepad to read or edit the file. 3) Open STATA, select File, select Do, and select caschool.do. STATA will then execute the program. 4) Note that the scatterplot we created should appear on your screen if you minimize STATA. 5) Open caschool_output.log. The log file is the output file that was created when we ran the do file. We instructed STATA to save the log file in the My Documents folder. Right-click the file and open it with Notepad. 6) Read caschool_explanation.doc (on Blackboard) as you read over the output to see what the commands in caschool.do mean. You will need to use similar commands to complete this problem set. 7) Close STATA (black screen) before you run another do file. (There are a limited number of licenses in the labs. Things slow down if you have multiple STATA sessions open on your computer simultaneously.) Type your answers in a Word document. Problem #1 1) Download CPS04.dta (STATA data file) from Blackboard to the My Documents folder (right-click on file and save): "C:\Documents and Settings\B30B\My Documents\CPS04.dta" 2) Now we have to create a new do file. Let’s call our new do file CPS04.do. (Note that it is “zero four” as in the year 2004.) The easiest way to do this is to edit caschool.do and then save the new do file as The easiest way to do this is to edit caschool....
View Full Document
- Spring '08
- Filename extension, Computer file, log file, Stata data