STA442 Assignment 3
Do for Test One: Friday Jan. 30th
Do the job described below, and bring your log file and your list file to Test 1. You will be asked a few very simple questions, like what's the mean number of hours of sports programming watched per household, or how many households in the sample do not have a TV. The answers will all be numerical, and they will all be directly from your printout.
There is a warning about copying at the end of this Web page; please read it and believe it. Now here's the assignment.
The file tv1.dat contains data from a 1982 survey conducted in Stevens County in the United States. Well, actually Stevens county is fictitious, and the data were simulated using a program written by Ted Chang of the University of Virginia (see The American Statistician, 46 (1992), 232-237 for more information), but the details are realistic -- or anyway, they were realistic in 1982. The imaginary "Stevens County" is divided into 75 districts including rural, small-town and urban areas. For each of 500 households interviewed, the data file contains district number, household number within district, assessed value of home in US dollars (an indirect measure of income, which was not asked), and answers to 9 questions related to the respondents' interest in getting cable TV. The variables are:
Write a SAS program that reads the data and labels the variables with the label statement. Use proc freq to obtain frequency distributions of all the survey questions. Use proc means to obtain n, mean and standard deviation for all the quantitative variables. That's it.
Again, bring your log file and your list file to the test. You will hand them both in. Here are a few suggestions and comments