Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS Exam A00-231 Topic 4 Question 4 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 4
Topic #: 4
[All A00-231 Questions]

The following SAS program is submitted:

proc means data=work.schools median;

run;

Assume thatWork.Schoolshas two numeric variables and the following PROC MEANS report is produced:

Which of the following SAS statements completes the program and creates the desired report? Select one:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Tonette
26 days ago
Wait, is this a trick question? I could have sworn the answer was D) by location; id location. Oh well, time to go back to studying my SAS syntax.
upvoted 0 times
...
Viola
1 months ago
I think the key here is understanding the difference between BY and CLASS statements in PROC MEANS. BY creates separate reports for each location, while CLASS groups the data by location within the same report.
upvoted 0 times
Nakisha
15 days ago
C) group by location;
upvoted 0 times
...
Myra
18 days ago
B) class location;
upvoted 0 times
...
Dalene
26 days ago
A) by location;
upvoted 0 times
...
...
Isaac
1 months ago
I'm not sure, but I think 'group by location' might also work. Can someone explain why 'class location' is the best choice?
upvoted 0 times
...
Eun
1 months ago
Haha, this is like a classic SAS question. I remember struggling with these back in my college days. Good times!
upvoted 0 times
...
Shoshana
2 months ago
The correct answer is B) class location. This will group the data by the location variable and calculate the median for each location.
upvoted 0 times
Sheron
21 days ago
Got it, thanks for the clarification!
upvoted 0 times
...
Marylyn
1 months ago
B) class location;
upvoted 0 times
...
...
Monte
2 months ago
The median is the middle value when the data is arranged in numerical order. This PROC MEANS report shows the median for each location, which is exactly what the question is asking for.
upvoted 0 times
D) by location; id location;
upvoted 0 times
...
Andra
3 days ago
C) group by location;
upvoted 0 times
...
Marg
4 days ago
B) class location;
upvoted 0 times
...
Devora
5 days ago
A) by location;
upvoted 0 times
...
Fabiola
8 days ago
D) by location; id location;
upvoted 0 times
...
Ressie
15 days ago
C) group by location;
upvoted 0 times
...
Carline
25 days ago
B) class location;
upvoted 0 times
...
Roselle
1 months ago
A) by location;
upvoted 0 times
...
...
Goldie
2 months ago
I agree with Yuette, using 'class' is the correct way to group the data by location.
upvoted 0 times
...
Yuette
2 months ago
I think the answer is B) class location.
upvoted 0 times
...

Save Cancel