Question: SAS Programming For Assignment, you will turn in three documents. Please do the following: Document 1: Save the bodyfat data set as a SAS data

SAS Programming

For Assignment, you will turn in three documents. Please do the following:

Document 1:

Save the bodyfat data set as a SAS data set. This should be a separate code file.

Submit the code as a PDF. No output/results section necessary.

Documents 2 and 3:

Call the bodyfat data set using the set statement.

Create a new variable, called newvar that is the age variable and the pctfat variable multiplied.

Create a new variable, called age2 that uses the if statement to classify the age variable into two groups:

Classify those under 50 to be under50

Classify those 50 and over to be over50

Print out the dataset including all four variables.

Use the sort and means procedures to sort and calculate the statistics for the variables by the age2 variable.

Produce a scatterplot of the age variable and the pctfat variable, where age is on the x-axis.

Produce a line plot of the age variable and the newvar variable, where age is on the y-axis.

Save your Code and your Results files as PDFs and submit to the dropbox.

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 Databases Questions!