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
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.
Hello! Python by Anthony Briggs(9373)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9343)
The Mikado Method by Ola Ellnestam Daniel Brolund(9307)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7851)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7402)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7323)
Grails in Action by Glen Smith Peter Ledbrook(7295)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7116)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5957)
Kotlin in Action by Dmitry Jemerov(4637)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3883)
Functional Programming in JavaScript by Mantyla Dan(3723)
Learning Java by Patrick Niemeyer & Daniel Leuck(2871)
Mastering Python for Finance by Weiming James Ma;(2838)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2837)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2600)
Windows APT Warfare by Sheng-Hao Ma(2597)
Mastering Java 9 by Dr. Edward Lavieri(2573)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2558)