nerdexam
SAS_Institute

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

Logistic Regression

Question

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 statement here> run; Which SAS statement will complete the program to correctly score the data set NEW_DATA?

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)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (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 incorrect output= option.
  • C is wrong because it contains a typo - NEU_DATA instead of NEW_DATA - and also uses the incorrect output= option name.
  • D is wrong because it references _NEW_DATA (with a leading underscore), which is a different dataset name than the NEW_DATA the question asks about, even though out= 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

#PROC LOGISTIC#SCORE statement#Model scoring#SAS syntax

Community Discussion

No community discussion yet for this question.

Full A00-240 Practice