Название: Exercises and Projects for The Little SAS Book, Sixth Edition
Автор: Lora D. Delwiche
Издательство: Ingram
Жанр: Программы
isbn: 9781642955255
isbn:
Chapter 8
Visualizing Your Data
Multiple Choice
Short Answer
Programming Exercises
Chapter 9
Using Basic Statistical Procedures
Multiple Choice
Short Answer
Programming Exercises
Chapter 10
Exporting Your Data
Multiple Choice
Short Answer
Programming Exercises
Chapter 11
Debugging Your SAS Programs
Multiple Choice
Short Answer
Programming Exercises
PROJECTS
Health and Human Services
Trends in the United States Census Data
United States Federal Election Commission Donations
Lottery
Loan Strategies
Twitter Data
World Bank
Toxic Chemicals
Selected Solutions
Chapter 1—Getting Started Using SAS Software
Chapter 2—Accessing Your Data
Chapter 3—Working with Your Data
Chapter 4—Sorting, Printing, and Summarizing Your Data
Chapter 5—Enhancing Your Output with ODS
Chapter 6—Modifying and Combining SAS Data Sets
Chapter 7—Writing Flexible Code with the SAS Macro Facility
Chapter 8—Visualizing Your Data
Chapter 9—Using Basic Statistical Procedures
Chapter 10—Exporting Your Data
Chapter 11—Debugging Your SAS Programs
About This Book
Who should use this book This book was written for anyone who wants hands-on experience while learning or practicing the basics of SAS programming. The exercises and projects in this book are designed so that they can be used in a classroom setting or by an individual reader working alone.
Content This book consists of exercises (with selected solutions) and projects. Each chapter in this book covers the same material as the corresponding chapter in The Little SAS Book, Sixth Edition. The content in each chapter builds on previous chapters, so we do not expect a reader to use a technique in one chapter that is introduced in a later chapter.
Exercises There are three types of exercises in this book: multiple choice, short answer, and programming. Each type of exercise is designed to improve the comprehension of topics and syntax, and to develop SAS coding skills with realistic data sets.
Solutions Solutions are provided for odd-numbered multiple choice and short answer questions. Solutions are not provided for programming exercises, but hints are provided to help give readers direction.
Projects The projects in the final chapter are designed to serve as a comprehensive capstone for the programming skills developed throughout the book. Each project gives readers a chance to synthesize the material learned from various chapters. Completing a project will take several days of intense thought and coding, and will result in a final product that could serve as evidence of SAS proficiency to a future employer or course instructor. Projects can be completed by a group or an individual.
Typographical Conventions This book uses the same typographical conventions as The Little SAS Book. SAS doesn’t care whether your programs are written in uppercase or lowercase, so you can write your programs any way you want. In this book, we have used uppercase and lowercase to tell you something. All SAS keywords appear in uppercase letters. A keyword is an instruction to SAS and must be spelled correctly. Anything that programmers make up such as variable names, names for SAS data sets, comments, or titles are generally shown in lowercase or mixed-case letters.
Data Sets We have tried to include programming exercises with data sets that are somewhat large, unruly, and messy. We hope that this will help our readers develop their skills more fully. Some of the exercises are based on data that come directly from public sources, while others have been designed to mimic real-life scenarios.
The data sets for exercises can be accessed via web pages for any of the authors of this book at the support site for SAS, support.sas.com/publishing/authors (select the name of the author; then, look for the cover thumbnail of this book and select Exercise Data). The data sets are organized by chapter, and they are also available in a single, downloadable ZIP file. If you are unable to access the data through the website, send an email to [email protected].
The projects in the final chapter use real data. We give instructions for locating and downloading the data from primary sources so that you will have the most up-to-date and authentic data possible.
How to use this book The exercises are organized in such a way as to help readers develop useful and sensible programming habits. Readers are encouraged to examine all raw data files and SAS data sets they will be accessing before writing any code.
In many of the programming exercises, we do not explicitly ask the reader to use a particular function or procedure. This was intentional in order to provide users with the opportunity to develop code based on what they learned from the topics that are covered in the corresponding chapter. This means that the code written by one person may not be the same as that written by another person, even though they both may arrive at the same answer.
While the material presented in the book includes exercises for certain graphical and statistical analyses, the purpose of these chapters is merely to introduce the basic syntax and concepts, and not the fine details of the analysis itself. This book may be used in a statistics course as a programming supplement. However, it should not be considered a statistical textbook.
Compatibility with SAS software This book was developed using SAS 9.4, but the exercises are compatible with SAS 9.3 and later. Most exercises require only Base SAS, but a few in Chapter 9 require SAS/STAT, and a few in Chapters 2 and 10 require SAS/ACCESS Interface to PC Files. The exercises in this book were designed to be programmed in the SAS windowing environment, SAS Enterprise Guide, SAS Studio, SAS OnDemand for Academics, or the SAS University Edition through SAS Analytics U. We have noted the few instances when an exercise СКАЧАТЬ