hw4 - PH6420 Assignment 4 Due Nov 7 Overview You will need...

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

View Full Document Right Arrow Icon
PH6420: Assignment 4 Due: Nov 7 Overview You will need to write 3 separate SAS programs for this assignment (Part A, Part B, Part C). Turn in each program. Be sure to answer each question. You do not need to hand in any output; if you do, include only output that helps answer a question. PART A: Write a SAS program to do the following 1. Create a SAS dataset called diet reading in data from tomhs.data. Read in the variables ptid , clinic , randdate , sex , brthdate , marital , kcalbl , fatbl , dcholbl , sodbl , and potbl , The last 5 variables are intake of dietary nutrients as described in the course packet. (Note: bl stands for baseline). 2. Create a variable that is the age of the patient at the beginning of the study (use brthdate and randdate) . Create another variable that is the ratio of dietary sodium to dietary potassium. 3. Include labels for each variable within the data step (See course packet for descriptions). Include a date format for
Background image of page 1

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

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

{[ snackBarMessage ]}

Page1 / 2

hw4 - PH6420 Assignment 4 Due Nov 7 Overview You will need...

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