ABSTRACT

Three paths exist to open data files. First, students can simply double click on the file, and, if Stata is installed on the computer, the file will open in Stata automatically. Second, students can easily open a file through navigating the pull-down menus. Another method to open a file is the use command, followed by a correctly specified file path in quotation marks. Before doing any further analysis, one needs to readjust the subsample sizes to better approximate what they would look like if the sample was purely random, or equiprobable. This is accomplished using Stata's survey estimation procedures. To analyze survey data with weights, we must first declare the data set as survey data and set the weight to be used throughout the analysis. This is accomplished using the svyset command. Second, on a command-by-command basis, we will add the svy prefix to each command to implement weighting.