SAS_Institute
A00-280 · Question #1
Given the SAS data set WORK.BP subjid SBP DBP ------- --- --- 01561 101 92 02453 130 97 03489 117 70 01564 120 80 02678 145 79 The following SAS program is submitted: data WORK.HIGHBP WORK.NORMBP…
The correct answer is B. WORK.HIGHBP has 1 observation WORK.NORMGBP 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
01561 101 92 02453 130 97 03489 117 70 01564 120 80 02678 145 79 The following SAS program is submitted: data WORK.HIGHBP WORK.NORMBP WORK.INVESTBP; set WORK.BP; if SBP gt 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?
01561 101 92 02453 130 97 03489 117 70 01564 120 80 02678 145 79 The following SAS program is submitted: data WORK.HIGHBP WORK.NORMBP WORK.INVESTBP; set WORK.BP; if SBP gt 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.NORMGBP has 3 observation WORK.INVESTBP has 3 observations
- BWORK.HIGHBP has 1 observation WORK.NORMGBP has 1 observation WORK.INVESTBP has 4 observations
- CWORK.HIGHBP has 1 observation WORK.NORMGBP has 1 observation WORK.INVESTBP has 2 observations
- DWORK.HIGHBP has 2 observations WORK.NORMGBP has 2 observations WORK.INVESTBP has 3 observations
How the community answered
(26 responses)- A12% (3)
- B81% (21)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.