Assignment 2

SAS data manipulation and graphing

Normal Distribution Exercises

DUE DATE: 1/28/03

 

Input the data from Hays, p. 201, Exercise 3 into a dataset.  The age variable, from exercise 3, will be age of participant.  Input the data from Hays, p. 202, Exercise 20 into a second dataset.  The age variable, from exercise 20, will be age of participant’s spouse.  Create a variable for participant id number for each dataset.  Make sure that the variable for id number has the same name in both datasets.  Merge the two datasets the two datasets so that they are stacked horizontally, that is, in the resulting dataset, there should be three variables, one for participant id number, one for participant age and one for spouse’s age.

 

  1. Print the raw data; Use PROC Univariate to find the descriptive statistics (mean, median, standard deviation) for the entire group. (1 point)
  2. Use PROC Univariate to find the descriptive statistics for both age groups. Describe in words the gist of the figures, that is, what appears to be the message in the graphs?  (1 point)
  3. Hays Exercise 6.1 (p. 262) (1 point)
  4. Hays Exercise 6.3 (p. 263) (1 point)
  5. Hays Exercise 6.11 (p. 264) (1 point)