Question: Problem 2 . a . Read the data set behavioral therapy.txt in SAS using infile statement and variable list in input statement and call this

Problem 2.
a. Read the data set behavioral therapy.txt in SAS using infile statement and variable list in input statement and call this SAS data set btherapy. (HINT: examine your data carefully before infilling). Variables are GROUP (char), and TIME1, TIME2 and TIME3(all num)
b. Print the data.
c. Sort this data set by GROUP. Produce summary statistics (means, sd etc) for variable TIME1 using BY processing and then repeat it using CLASS statement.
Problem 3.
a. Read the data set drug1.txt in SAS using infile statement and call this SAS data set drug1. Use column pointers, variables lists and informats within input statement. Variables are DRUG (char), RESP1, RESP2, RESP3, PULSE1, PULSE2 and PULSE3(all num). Note that RESP and PULSE variables have one decimal place so make sure that shows up in the output.
b. Print the data.
c. Output that data set to your designated drive using ODS RTF and ODS PDF statements with PROC PRINT.vm Taka-hi
Drnhlar
behavioral therapy.txt
T 4
C 78
C
T 16,17g
13,43*33*32*22*12.1
213,43,43*32*22*12*2
13,33,43,42*32*42.3
13,43,43,42.32,42.3
13.33,43.32.22.22.4
13,33,33,32.02,12.4
drug1.txt
 Problem 2. a. Read the data set behavioral therapy.txt in SAS

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!