A00-240 Exam QuestionsBrowse all questions from this exam

A00-240 Exam - Question 10


A linear model has the following characteristics:

✑ A dependent variable (y)

✑ Three continuous predictor variables (x1-x3)

✑ One categorical predictor variable (c1 with 3 levels)

Which SAS program fits this model?

Show Answer
Correct Answer: D

To fit a model in SAS with both continuous and categorical predictor variables, you should use the PROC GLM procedure. PROC GLM can handle class (categorical) variables, which is necessary in the provided context because one of the predictor variables is categorical with three levels. PROC REG does not support the CLASS statement, which is required for the categorical variable. Therefore, the correct option is the one that uses PROC GLM and includes the CLASS statement for the categorical predictor variable. Option D effectively fits the given model in SAS.

Discussion

3 comments
Sign in to comment
UnorichOption: A
Oct 8, 2020

For those of you wondering- "PROC REG" does not support "CLASS" which is why you cannot use it.

Dkonat
Oct 25, 2020

Reg also does not support VAR, SOLUTION

dopeysang
Nov 2, 2020

It does support VAR, just not solution. https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=statug&docsetTarget=statug_reg_syntax.htm&locale=en

Krishna1985Option: D
Nov 16, 2020

How come the answer is D here?