SAS_Institute
A00-280 · Question #10
The VISIT data set is multiple records per subject, sorted by usubjid vistdtc vistm and contains the following variables: Variable Type Len 1 VISITNUM Char 2 2 VISDT Char 19 3 VISTM Char 5 4 usubjid…
The correct answer is A. data data_1; merge death visit; by usubjid vistdtc vistm; run. See the full explanation below for the reasoning.
Question
The VISIT data set is multiple records per subject, sorted by usubjid vistdtc vistm and contains the following variables:
Variable Type Len
1 VISITNUM Char 2 2 VISDT Char 19 3 VISTM Char 5 4 usubjid Num 8 The DEATH data set is one record per subject, sorted by usubjid vistdtc vistm and contains the following variables:Variable Type Len
1 DEREFID Char 8 2 DTHDT Char 200 3 VISTDTC Char 19 4 VISTM Char 5 5 usubjid Num 8 Which program will combine the DEATH and VISIT data sets by matching records?Options
- Adata data_1; merge death visit; by usubjid vistdtc vistm; run;
- Bdata data_1; merge death visit; run;
- Cdata data_1; set death visit; by usubjid vistdtc vistm; run;
- Ddata data_1; merge death visit; by usubjid vistdtc; run;
How the community answered
(31 responses)- A71% (22)
- B16% (5)
- C3% (1)
- D10% (3)
Community Discussion
No community discussion yet for this question.