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:

  1. District: 1-25 are rural, 26-50 small town, 51-75 city.
  2. Household (numbered within district)
  3. Assessed value of home in US dollars
  4. Number of persons 12 and older in household
  5. Number of persons 11 and younger in household
  6. Number of TV sets in Household
  7. Price willing to pay for cable TV
  8. Total TV hours watched last week (add hours for all persons in household)
  9. Hours Public Affairs watched last week
  10. Hours Sports watched last week
  11. Hours Children's programming watched last week
  12. Hours Movies watched last week

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