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
1 months 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
Yolando
11 days ago
Yeah, I remember now. It's definitely D) by location; id location.
upvoted 0 times
...
Shantay
13 days ago
I think you're right, the answer is D) by location; id location.
upvoted 0 times
...
...
Viola
2 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
1 months ago
C) group by location;
upvoted 0 times
...
Myra
1 months ago
B) class location;
upvoted 0 times
...
Dalene
1 months ago
A) by location;
upvoted 0 times
...
...
Isaac
2 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
2 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
1 months ago
Got it, thanks for the clarification!
upvoted 0 times
...
Marylyn
2 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
Gerry
15 days ago
D) by location; id location;
upvoted 0 times
...
Andra
18 days ago
C) group by location;
upvoted 0 times
...
Marg
19 days ago
B) class location;
upvoted 0 times
...
Devora
20 days ago
A) by location;
upvoted 0 times
...
Fabiola
23 days ago
D) by location; id location;
upvoted 0 times
...
Ressie
1 months ago
C) group by location;
upvoted 0 times
...
Carline
1 months ago
B) class location;
upvoted 0 times
...
Roselle
2 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77