Quiz: Creating
Enhanced List and Summary Reports
Select the best answer for each question and click Score My Quiz.
- If
Style has four unique values and you submit the
following program, which output do you get?
proc report data=sasuser.houses nowd;
column style sqfeet bedrooms price;
define style / group;
run;
|
a. |
Style |
SqFeet |
Bedrooms |
Price |
CONDO |
6755 |
11 |
$397,250 |
RANCH |
5005 |
9 |
$274,300 |
SPLIT |
4110 |
8 |
$233,950 |
TWOSTORY |
5835 |
12 |
$335,300 |
|
|
b. |
Style |
SqFeet |
Bedrooms |
Price |
CONDO |
1400 |
2 |
$80,050 |
|
1390 |
3 |
$79,350 |
|
2105 |
4 |
$127,150 |
|
1860 |
2 |
$110,700 |
RANCH |
1250 |
2 |
$64,000 |
|
1500 |
3 |
$86,650 |
|
1535 |
3 |
$89,100 |
|
720 |
1 |
$34,550 |
SPLIT |
1190 |
1 |
$65,850 |
|
1615 |
4 |
$94,450 |
|
1305 |
3 |
$73,650 |
TWOSTORY |
1810 |
4 |
$107,250 |
|
1040 |
2 |
$55,850 |
|
1240 |
2 |
$69,250 |
|
1745 |
4 |
$102,950 |
|
|
c. |
Style |
SqFeet |
Bedrooms |
Price |
15
|
21705 |
40 |
$1,240,800 |
|
|
d. |
Style |
SqFeet |
Bedrooms |
Price |
RANCH |
1250 |
2 |
$64,000 |
SPLIT |
1190 |
1 |
$65,850 |
CONDO |
1400 |
2 |
$80,050 |
TWOSTORY |
1810 |
4 |
$107,250 |
RANCH |
1500 |
3 |
$86,650 |
SPLIT |
1615 |
4 |
$94,450 |
SPLIT |
1305 |
3 |
$73,650 |
CONDO |
1390 |
3 |
$79,350 |
TWOSTORY |
1040 |
2 |
$55,850 |
CONDO |
2105 |
4 |
$127,150 |
RANCH |
1535 |
3 |
$89,100 |
TWOSTORY |
1240 |
2 |
$69,250 |
RANCH |
720 |
1 |
$34,550 |
TWOSTORY |
1745 |
4 |
$102,950 |
CONDO |
1860 |
2 |
$110,700 |
|
- When you define an order variable,
- Which attributes or options are reflected in this PROC REPORT output?
Style |
SqFeet |
Price |
|
RANCH |
720 |
$34,550 |
TWOSTORY |
1040 |
$55,850 |
SPLIT |
1190 |
$65,850 |
TWOSTORY |
1240 |
$69,250 |
RANCH |
1250 |
$64,000 |
SPLIT |
1305 |
$73,650 |
CONDO |
1390 |
$79,350 |
CONDO |
1400 |
$80,050 |
RANCH |
1500 |
$86,650 |
RANCH |
1535 |
$89,100 |
SPLIT |
1615 |
$94,450 |
TWOSTORY |
1745 |
$102,950 |
TWOSTORY |
1810 |
$107,250 |
CONDO |
1860 |
$110,700 |
CONDO |
2105 |
$127,150 |
|
- To create a summary report that shows the average number of bedrooms
and the maximum number of baths for each style of house, which DEFINE
statements do you use in your PROC REPORT step?
- Which program does not contain an error?
- What output does this PROC REPORT step produce?
proc report data=sasuser.houses nowd;
column style sqfeet bedrooms price;
run;
- Which of the following programs produces this output?
Style |
|
CONDO |
RANCH |
SPLIT |
TWOSTORY |
Average
Price |
4 |
4 |
3 |
4 |
$82,720 |
- If you submit this program, where does your PROC REPORT output
appear?
proc report data=sasuser.houses;
column style sqfeet bedrooms price;
define style / group;
run;
- How can you create output with headings that break as shown below?
Style of House |
Average Bedrooms |
Maximum Baths |
CONDO |
2.75 |
2.5 |
RANCH |
2.25 |
3 |
SPLIT |
2.6666667 |
3 |
TWOSTORY |
3 |
3 |
|
- Suppose you want to create a report using both character and numeric
variables. If you don't use any DEFINE statements in your PROC REPORT
step,
|