hw5 - PH6420 Assignment 5 Due: November 21 This assignment...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
PH6420 Assignment 5 Due: November 21 This assignment will be more challenging then previous assignments so plan on taking more time on them. You may want to sketch out your program on paper before working on the computer. PART A: The goal of this program is to generate a report giving the 25%, 50%, and 75% percentiles of weight change at 12-months for men and women. In this part you will be using ODS OUTPUT to create an output dataset and then use data step programming to get the desired report. 1. In a data step create a work dataset named wt, reading in the following variables from the tomhsp SAS dataset: ptid, clinic, sex, wtbl, and wt12. The dataset in on the class website. 2. In the data step create a new variable name wtchg, the change in weight (12-months minus baseline). Then end the data step with a RUN statement. 3. Use PROC FORMAT to create a format for the variable sex. 4. Run PROC UNIVARIATE on the variable wtchg, using the variable sex as a class variable to obtain statistics separately by sex. Use an ODS OUTPUT statement to create a SAS dataset containing the quantiles table from PROC UNIVARIATE. Use a FORMAT statement for the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw5 - PH6420 Assignment 5 Due: November 21 This assignment...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online