A00-240 · Question #6
The question will ask you to provide a missing statement. Given the following SAS program: proc logistic data = MYDIR.DEFAULT_DATA des; model Purchase = Money Acct_type Debt Employment; <insert statem
The correct answer is D. Score data=MYDIR._NEW_DATA out=scores;. Important note: There appears to be an error in this question's stated answer key. Option A is actually the correct answer, not D. Option A (Score data=MYDIR.NEW_DATA out=scores;) is syntactically correct because the PROC LOGISTIC SCORE statement uses OUT= (not OUTPUT=) for the o
Question
Options
- AScore data=MYDIR.NEW_DATA out=scores;
- BScore data data=MYDIR.NEW_DATA output=scores;
- CScore data=MYDIR.NEU_DATA output=scores;
- DScore data=MYDIR._NEW_DATA out=scores;
How the community answered
(25 responses)- A4% (1)
- B4% (1)
- D92% (23)
Explanation
Important note: There appears to be an error in this question's stated answer key. Option A is actually the correct answer, not D.
Option A (Score data=MYDIR.NEW_DATA out=scores;) is syntactically correct because the PROC LOGISTIC SCORE statement uses OUT= (not OUTPUT=) for the output dataset, and correctly references NEW_DATA as the dataset to score.
The distractors fail for the following reasons:
- B is wrong on two counts: it has a duplicated
data data=keyword, which is invalid syntax, and uses the incorrectoutput=option. - C is wrong because it contains a typo -
NEU_DATAinstead ofNEW_DATA- and also uses the incorrectoutput=option name. - D is wrong because it references
_NEW_DATA(with a leading underscore), which is a different dataset name than theNEW_DATAthe question asks about, even thoughout=is syntactically correct.
Memory tip: For PROC LOGISTIC SCORE, remember "data in, out goes out" - DATA= names the dataset to score, and OUT= (short, three letters) names the output. If you see OUTPUT=, it's always a trap - that keyword belongs elsewhere in SAS, not here.
Topics
Community Discussion
No community discussion yet for this question.