🎴 Flashcard Mode
Java and SAS Programming Quiz
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Dataset x Rev1 Rev2 Rev3 Rev4 1 3 4 5 data y; set x; z=mean(?); run; Fill in the mean function call.
AnswerClick to flip back
A
mean(of Rev:)
💡 Explanation:
The mean(of Rev:) syntax uses the SAS variable list shortcut 'of Rev:' which refers to all variables starting with 'Rev'. This is the most concise and correct way to calculate the mean of Rev1, Rev2, Rev3, and Rev4. Option A is incorrect because the range syntax with dash only works with numbered variables. Option C is incorrect because mean() requires the OF keyword when listing variables.