Exercises and Projects for the Little SAS Book by Rebecca A. Ottesen

Exercises and Projects for the Little SAS Book by Rebecca A. Ottesen

Author:Rebecca A. Ottesen
Language: eng
Format: epub
Tags: Programming

Student Book
Publisher: SAS Institute
Published: 2020-02-03T13:37:45+00:00


Chapter 8

Visualizing Your Data

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

1. ODS Graphics does which of the following?

a. It can send graphs to the LISTING destination

b. It enables statistical procedures to produce graphics

c. It uses ODS style templates

d. All of the above

2. Which types of plots can be overlaid together in a single graph?

a. box and scatter

b. loess and density

c. scatter and series

d. histogram and bar

3. The STYLE= option can go in which statement in order to specify a style template for a graph?

a. ODS HTML

b. ODS GRAPHICS

c. PROC SGPLOT

d. None of the above

4. A stacked bar chart based on the variables Year and Type can be created with which of the following statements?

a. VBAR Year / GROUP = Type;

b. VBAR Year / GROUP = Type GROUPDISPLAY = STACK;

c. HBAR Year / GROUP = Type;

d. All of the above

5. Which statement will draw a normal curve in PROC SGPLOT?

a. HISTOGRAM Age / DENSITY;

b. DENSITY Age;

c. HISTOGRAM Age / NORMAL;

d. NORMAL Age;

6. Which of the following will tell SAS to create box plots as separate graphs for each level of a categorical variable named Origin?

a. CATEGORY = Origin

b. GROUP = Origin

c. BY Origin

d. All of the above

7. You can produce a fitted line on a scatter plot with which SGPLOT statement?

a. SCATTER

b. SERIES

c. REG

d. All of the above

8. You can create a scatter plot with labels on the data points that represent the Y axis values with which of the following statements?

a. SCATTER X = MSRP Y = Invoice;

b. SCATTER X = MSRP Y = Invoice / DATALABEL = Invoice;

c. SCATTER X = MSRP Y = Invoice / DATALABEL = YAXIS;

d. All of the above

9. Which of the following is an option that will automatically place reference lines at each tick mark?

a. REFLINE

b. GRID

c. VALUES=

d. None of the above

10. How can you tell SAS to replace the variable name on an axis with a label?

a. Use an XAXIS statement with a LABEL= option

b. Specify a LABEL statement in the DATA step

c. Use a LABEL statement in PROC SGPLOT

d. All of the above

11. What will happen if you specify TRANSPARENCY = 1 in a plot statement in PROC SGPLOT?

a. Transparency will be turned on

b. Transparency will be turned off

c. The plot feature will be dark

d. The plot feature will disappear

12. What is true about legends?

a. They only appear when using the KEYLEGEND statement

b. They cannot appear if there is an inset

c. Placement can be controlled with a KEYLEGEND statement

d. All legends have borders

13. Which option could be used to modify the data points on a scatter plot?

a. FILLATTRS=

b. LINEATTRS=

c. MARKERATTRS=

d. None of the above

14. Which of the following is not true about the SGPANEL procedure?

a. It uses nearly all the same plot statements as PROC SGPLOT

b. It requires a BY statement

c. It produces multi-celled graphs

d. It requires at least one categorical variable

15. What ODS GRAPHICS statement option will tell SAS to give an image file a specific name every time the code is run?

a. RESET

b. IMAGENAME=

c. Both of the above used together

d. Neither of the above

Short Answer

16. What is the main difference between graphs that are automatically created by ODS Graphics versus graphs created using PROC SGPLOT?

17. Suppose you use a VBAR and HISTOGRAM statement together inside the same SGPLOT procedure. Would SAS be able to create a graph with this combination of statements? Explain why or why not.

18. Suppose a student combines a histogram with a normal density plot, but the histogram appears on top of the density plot, which makes it hard to see.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.