SAS_Institute
A00-280 · Question #102
Given the SAS data set WORK.BP `` subjid SBP DBP ----- --- --- 01361 103 92 02422 130 87 03489 117 70 01834 118 85 02678 145 79 ` The following SAS program is submitted: ` data WORK.HIGHBP…
The correct answer is B. WORK.HIGHBP has 1 observation WORK.NORMBP has 1 observation WORK.INVESTBP has 4 observations. See the full explanation below for the reasoning.
Question
Given the SAS data set WORK.BP
subjid SBP DBP
----- --- ---
01361 103 92
02422 130 87
03489 117 70
01834 118 85
02678 145 79
The following SAS program is submitted:
data
WORK.HIGHBP
WORK.NORMBP
WORK.INVESTBP;
set WORK.BP;
if SBP ge 140 and DBP ge 90 then output WORK.HIGHBP;
if SBP lt 120 and DBP lt 80 then output WORK.NORMBP;
else output WORK.INVESTBP;
run;
What is the result?Options
- AWORK.HIGHBP has 1 observation WORK.NORMBP has 1 observation WORK.INVESTBP has 3 observations
- BWORK.HIGHBP has 1 observation WORK.NORMBP has 1 observation WORK.INVESTBP has 4 observations
- CWORK.HIGHBP has 1 observation WORK.NORMBP has 1 observation WORK.INVESTBP has 2 observations
- DWORK.HIGHBP has 2 observations WORK.NORMBP has 2 observations WORK.INVESTBP has 3 observations
How the community answered
(19 responses)- A5% (1)
- B74% (14)
- C5% (1)
- D16% (3)
Community Discussion
No community discussion yet for this question.