SAS_Institute
A00-280 · Question #14
Given the following data set: subjid trt result dtime age 1 A CR 0 56 2 A PD 1 52 3 B CR 2 47 4 B CR 2 29 5 I SD 1 39 6 C PD 1 31 7 C PD 2 90 The following output was generated from PROC PRINT. Obs…
The correct answer is B. proc sort data=one out=two nodupkey; by subjid; run. See the full explanation below for the reasoning.
Question
Given the following data set:
subjid trt result dtime age
1 A CR 0 56
2 A PD 1 52
3 B CR 2 47
4 B CR 2 29
5 I SD 1 39
6 C PD 1 31
7 C PD 2 90
The following output was generated from PROC PRINT.
Obs subjid trt result dtime age
1 1 A CR 0 56
2 2 A PD 1 52
3 3 B CR 2 47
4 4 B CR 2 29
5 5 I SD 1 39
6 6 C PD 1 31
7 7 C PD 2 90
Which program was used to prepare the data for this PROC PRINT output?
Options
- Aproc sort data=one out=two; by subjid; run;
- Bproc sort data=one out=two nodupkey; by subjid; run;
- Cproc sort data=one out=two nodup; by subjid; run;
- Dproc sort data=one out=two nodupkey; by subjid trt; run;
How the community answered
(62 responses)- A15% (9)
- B77% (48)
- C3% (2)
- D5% (3)
Community Discussion
No community discussion yet for this question.