A00-240 · Question #23
Within PROC GLM, the interaction between the two categorical predictors, Income and Gender, was shown to be significant. An item store was saved from the GLM analysis. Which statement from PROC PLM…
The correct answer is D. sliceby Income / adjust=tukey. Option C is actually the correct answer here, not D - the stated answer key appears to contain an error. In PROC PLM, the SLICE statement syntax requires both the interaction term and a SLICEBY= option: slice IncomeGender / sliceby=Income adjust=tukey; - the sliceby=Income…
Question
Options
- Asliceby Gender / adjust=tukey;
- Bslice Income*Gender / sliceby=Gender adjust=tukey;
- Cslice Income*Gender / sliceby=Income adjust=tukey;
- Dsliceby Income / adjust=tukey;
How the community answered
(34 responses)- A3% (1)
- B12% (4)
- C15% (5)
- D71% (24)
Explanation
Option C is actually the correct answer here, not D - the stated answer key appears to contain an error. In PROC PLM, the SLICE statement syntax requires both the interaction term and a SLICEBY= option: slice Income*Gender / sliceby=Income adjust=tukey; - the sliceby=Income option tells SAS to hold Income constant and test the effect of the remaining factor (Gender) within each Income level, while adjust=tukey corrects for multiple comparisons across those tests.
Why the distractors are wrong:
- A (
sliceby Gender / adjust=tukey) is not valid PROC PLM syntax - it omits theslicekeyword and the interaction term entirely. - B (
slice Income*Gender / sliceby=Gender adjust=tukey) reverses the logic -sliceby=Genderwould test Income within each level of Gender, not the other way around. - D (
sliceby Income / adjust=tukey) is syntactically incomplete - it drops theslicekeyword and the interaction effectIncome*Gender, making it invalid PROC PLM code.
Memory tip: Think of SLICEBY= as "hold THIS variable fixed, test everything else." To test Gender within Income levels, Income is being held fixed → sliceby=Income. The full statement always starts with slice <interaction> /.
Note: The stated correct answer of D appears to be a typo or keying error in the exam. Based on SAS documentation and syntax, C is the correct answer.
Topics
Community Discussion
No community discussion yet for this question.