Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help with sas.... Using the clinical data set, write a SAS program that creates a temporary SAS data set called fat that contains only one

image text in transcribed

help with sas....

Using the clinical data set, write a SAS program that creates a temporary SAS data set called fat that contains only one observation per patient and the following seven variables:

  • patient: the patient ID number
  • gender: the patient's gender (Male or Female)
  • group: the patient's treatment group (A, B, or C)
  • weight1: the patient's weight at his/her first visit
  • weight2: the patient's weight at his/her second visit (if there isn't a second visit, set it to missing)
  • weight3: the patient's weight at his/her third visit (if there isn't a third visit, set it to missing)
  • weight4: the patient's weight at his/her fourth visit (if there isn't a fourth visit, set it to missing)

You can, and therefore should, accomplish the task using just one DATA step. The keys again to accomplishing the task are using a BY statement, some IF statements with some first. and last. variables, as well as a RETAIN and OUTPUT statement. Print your resulting data set.

image text in transcribed ############`#### 1####""#2"##2################""#2"##2#2#""#>#############SAS FILECLINICAL DATA ! sA! sA##############################9.0101M3XP_PRO######################### #################################!sN#N#N#################UF####! sA########################################################################### ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ #####################################################UF#############G##### ############## ####### ##0####### ##d#######

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Business And Economics

Authors: James T. McClave, P. George Benson, Terry T Sincich

12th Edition

032182623X, 978-0134189888, 134189884, 978-0321826237

Students also viewed these Mathematics questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago