Please provide a hard copy of the written responses to the questions to the questions and GETTING STARTED IN STATA Find data! Your first task is to find some data. Being able to quickly find and bring data into Stata is a helpful skill. There are many websites with data to download. Pick something that interests you. For this assignment, the dataset simply needs to have at least three variables. The site http://www.data.gov/has thousands of datasets.
Please provide a hard copy of the written responses to the questions to the questions and GETTING STARTED IN STATA Find data! Your first task is to find some data. Being able to quickly find and bring data into Stata is a helpful skill. There are many websites with data to download. Pick something that interests you. For this assignment, the dataset simply needs to have at least three variables. The site http://www.data.gov/has thousands of datasets. More suggestions for data include ? The Bureau of Economic Analysis ? The Census Bureau ? The Bureau of Labor Statistics ? The Economic Research Service of the USDA has many data products: http://www.ers.usda.gov/data-products.aspx#.Ug7ajtJJOZ2 Stata can read in a variety of files (space delimited, comma delimited, csv, txt, etc.). For an overview of the commands for importing data, type “help import” in the Stata command window. For this homework, save your data in an excel file. Get started with a do-file Commands can be entered in Stata by using the drop-down menus, by typing the commands directly in the command window or by putting them in a do-file and then executing the file. The menu system can be helpful when looking for a command or doing quick exploration of the data. Although the command window can also be quick and useful, the best way to work in Stata is with a do-file. To begin working with a do-file, 1. Open Stata 2. Open a new do-file by clicking on the “New Do-file Editor” icon. The icon has a little pencil that appears to be writing on a notepad of sorts. Once open, save the file somewhere on your computer. Let’s say you saved it as “mydofile.do” in the location “C:econhw2”. 3. When executed, the following syntax in the do-file will clear Stata’s memory, set the current directory (i.e. tell Stata which folder you’ll be working in), close any open log and the log file that comes from running your entire do-file.
file, and create a log file called “output”. Setting the current directory tells Stata…





