Question: For this problem, you will be asked to create a SAS data file from a text file downloaded from the 2004 SEER cancer registry on

For this problem, you will be asked to create a SAS data file from a text file downloaded from the 2004 SEER cancer registry on cancer of the urinary system. See the file URINARY.txt posted on blackboard. The file seerdic.pdf contains information on the variables in the text file. Please refer to it directly while performing the steps to creating the data set. You will then be asked to complete a series of tasks using the data set you created.

  1. Download the text file to a directory on your computer, and use an infile statement to direct SAS to the file from which you wish to read the raw data.

  1. The file seerdic.pdf contains a list of variables stored in the file urinary.txt in addition to their column numbers (positions). Use the input statement create new variables for items 1, 2, 7, 8, 10, 11, 13, 14, 15, 18, 20 - size, 20 - positive nodes examined, 20 - nodes examined,37 - years, 37 - months, 63, 71. Note: it is your responsibility to determine whether a variable should be coded as numeric or character.

  1. Run a SAS procedure to calculate a frequency table and to generate a bar chart which summarizes the variables race, sex, and marital status. Then summarize in your own table. Report which category is the mode for each variable?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!