unit10mod14notes

advertisement
SAS Programming
North Carolina Virtual Public Schools
Modules 14 Creating Summary Reports and Data Sets
Guided Notes
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
What is PROC FREQ?
What does PROC FREQ produce?
What does a frequency table report?
What is the automatic output for PROC FREQ?
What else does PROC FREQ compute?
What are the types of frequency tables produced by PROC FREQ?
What does a one-way frequency table show?
What is a ‘level’ of a variable?
What are the four statistics shown by default in a one-way frequency table?
What is a two-way crosstabulation (contingency) table?
What is the default format that PROC FREQ shows a crosstabulation table?
Which variables are on the row and which on the column?
What does each of the columns tell you?
Which two statistics are the same in both a one-way frequency table and a crosstabulation
table? What is different?
How can you perform a frequency analysis of more than two variables?
What is produced for n-way crosstabulation tables?
What does the TABLES statement specify?
What types of variables are probably not useful to include in a PROC FREQ summary report?
What two criteria of variables that is best to use with frequency distributions?
What is a categorical variable?
What determines the order in which the one way frequency tables appear in a report?
Given the statement tables test1 test2 test3;, how many tables will be created?
How do you write the tables statement for a two-way crosstabulation table?
Which of the variables specifies the table rows and which specifies the tables column?
What other types of PROC and global statements can you use in the PROC FREQ step to
enhance the output?
What does the NLEVELS option added to the PROC FREQ statement produce?
What does the NOPRINT option added to the tables statement do?
How do you write a tables statement with a NOPRINT option added?
How can you suppress one or more of the statistics in the one-way frequency table? What are
the two options?
If you specify both NOCUM and NOPERCENT, which statistics appear in a frequency table?
What options can be used to suppress statistics in crosstabulation tables?
What does the NOPERCENT option suppress in crosstabulation tables?
What does the NOFREQ option suppress in crosstabulation tables?
What does the NOCOL option suppress in crosstabulation tables?
How can you display the crosstabulation tables in list format?
What is the difference between the statistics in the default version of a crosstabulation table
and the list version?
What is the crosslist format? How can you specify this format?
What does the FORMAT= statement do?
What formats can you use in the FORMAT= statement?
Can you use FORMAT= with the list or crosslist option?
How can you control how SAS places one-way tables on pages?
What does the PAGE option do?
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
What does the COMPRESS option do?
What two ways can you create output data sets using PROC FREQ?
What is the result of adding the OUT= option to the TABLES statement?
What is the result of adding the OUTPUT statement with the OUT= option?
What is the syntax to add the OUT= option to the TABLES statement?
What happens if the TABLES statement specifies variables for more than one table?
What happens if a two-way table is specified? What other variables will be in the data set?
What is the impact of adding a BY statement in the PROC FREQ with an OUT= option?
How can you suppress the PROC FREQ report?
What would be the code to create a one-way frequency table using the orion.whatever data
set – creating a new data set called temp. Use the variables student and grade.
What additional options can you use to add statistics to output data sets? (What is the option
and what do they add?)
What options do you have for the OUTPUT OUT= statement?
How is the OUTPUT OUT= statement written?
How is the TABLES statement impacted when you add an option to the OUTPUT OUT=
statement?
What does the data set contain when using the OUTPUT OUT= statement?
What is N?
How can you create multiple output data sets?
What is PROC MEANS?
What is the automatic output for PROC MEANS?
What statement do you add to the PROC MEANS to group observations?
Define class variable and class level.
How can you control the statistics that PROC MEANS displays?
How can you control the order that the statistics are displayed?
What is the BESTw. format?
How can you control the number of decimal places in the PROC MEANS output?
In which statement do you put the MAXDEC= option?
What is the default field width?
What option controls the field width of the statistical variables?
How can you suppress the NONOBS column?
In what ways can you enhance your PROC MEANS output?
Compare/contrast PROC MEANS and PROC SUMMARY.
What would be added to the PROC MEANS step in order to create an output data set?
What is the syntax of the OUT= option in the OUTPUT statement?
What option could you add to the PROC MEANS to suppress the report and generate only a
data set?
What types of variables are included in the data set using PROC MEANS?
What are the automatic variables?
What is _TYPE_?
What is _STAT_?
What are the default statistics?
What are the three parts of the output statistic specification?
What does the value of the _TYPE_ value indicate?
What level of summarization does the _TYPE_ value of 0 indicate?
What does the _TYPE_ value of 1 indicate?
What does the _TYPE_ value of 2 indicate?
What does the _TYPE_ value of 3 indicate?
How could you use the _TYPE_ value to limit the observations displayed? How would you
write a WHERE statement using this value?
89. What is the NWAY option? Where would it be added to your code?
90. What is the result of using the NWAY option?
91. What is the DESCENDTYPES option? Where would you add it to your code?
92. What is the result of using the DESCENDTYPES option?
93. What is the CHARTYPE option? Where would you add it to your code?
94. What is the result of using the CHARTYPE option?
95. What would the _TYPE_ value of 01 indicate?
96. How could you use a PROC MEANS data set?
97. What does PROC TABULATE display?
98. What are the four main steps to plan a PROC TABULATE report?
99. What are the differences between class and analysis variables?
100.
What defines an analysis variable?
101.
What does a one-dimensional table display?
102.
What does a two-dimensional table display?
103.
What does a three-dimensional tabular report display?
104.
What is the syntax of the PROC TABULATE step?
105.
What does the PROC TABULATE statement specify?
106.
What does the CLASS statement specify? How is it written?
107.
What does the VAR statement specify?
108.
What does the TABLE statement specify?
109.
What does the TABLE statement contain?
110.
Can you have more than one TABLE statement?
111.
Which expression is required in the TABLE statement?
112.
Does the order of the expressions matter?
113.
What is the default statistic of PROC TABULATE?
114.
What happens if you place an * between the variables in a TABLE statement?
115.
What is “crossing”?
116.
What is the impact on the output if you place an * between the variables in a TABLE
statement?
117.
What is the default statistic for PROC TABULATE?
118.
What is the default statistic if a TABLE statement contains an analysis variable?
119.
How can you specify a statistic in a TABLE statement?
120.
How can you specify more than one statistic in a TABLE statement?
121.
Where can you put the statistics in the dimension? What is the result on the output?
122.
What statistics can you add if you only have class variables?
123.
What statistics can you add if you have at least one analysis variable?
124.
What is a category?
125.
What is the class variable ALL?
126.
What is the impact of ALL and where would you add it in your code?
127.
How do you create a summary column?
128.
What statements can you use to enhance PROC TABULATE reports?
129.
How can you create an output data set using PROC TABULATE?
130.
What is the syntax of the PROC TABULATE statement with an OUT=?
131.
What variables are contained in the data set using PROC TABULATE?
132.
What are the three automatic variables?
133.
What is the _TABLE_ variable?
134.
What is the _PAGE_ variable?
135.
What is the _TYPE_ variable?
Review
 PROC FREQ
 PROC MEANS
Download