×

Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

The Little SAS Book: A Primer, Revised Second Edition / Edition 2
     

The Little SAS Book: A Primer, Revised Second Edition / Edition 2

by Lora D. Delwiche, Susan J. Slaughter, Susan J. Slaughter
 

ISBN-10: 159047113X

ISBN-13: 9781590471135

Pub. Date: 03/28/2003

Publisher: SAS Publishing

Want to learn SAS software but you don't know where to start? This friendly easy-to-read guide gently introduces you to the most commonly used features of SAS software plus a whole lot more! Topics cover the gamut of base SAS concepts, an introduction to SAS/STAT, and getting your data into SAS (including PROC IMPORT and PROC EXPORT). You'll find a generous amount of

Overview

Want to learn SAS software but you don't know where to start? This friendly easy-to-read guide gently introduces you to the most commonly used features of SAS software plus a whole lot more! Topics cover the gamut of base SAS concepts, an introduction to SAS/STAT, and getting your data into SAS (including PROC IMPORT and PROC EXPORT). You'll find a generous amount of information addressing basic SAS concepts (such as DATA and PROC steps); using the SAS windowing environment; working with permanent and temporary SAS data sets; inputting, and reading data; modifying data; introduction to the Output Delivery System (ODS), which enables you to generate HTML files for viewing with an Internet browser; introduction to macros; debugging SAS programs (including the DATA step debugger); and appendices to help programmers of other software languages become comfortable with the SAS programming language. Each topic is divided into an easy-to-use, self-contained, two-page layout complete with examples and graphics. This format enables new users to get up and running quickly, while the examples allow you to type in the program and see them work! More seasoned programmers will find this guide a useful reference to have on hand. Supports releases 7.00 and higher of SAS software.

Product Details

ISBN-13:
9781590471135
Publisher:
SAS Publishing
Publication date:
03/28/2003
Edition description:
Revised 2nd Edition
Pages:
304
Product dimensions:
75.00(w) x 87.50(h) x 7.50(d)

Table of Contents

Acknowledgmentsix
Introducing SAS Softwarex
About This Bookxi
What's Newxiv
Chapter 1Getting Started Using SAS Software
1.1The SAS Language2
1.2SAS Data Sets4
1.3The Two Parts of a SAS Program6
1.4The DATA Step's Built-in Loop8
1.5Choosing a Mode for Submitting SAS Programs10
1.6Windows and Commands in the SAS Windowing Environment12
1.7Submitting a Program in the SAS Windowing Environment14
1.8Reading the SAS Log16
1.9Viewing Your Results in the Output Window18
1.10Creating HTML Output20
1.11SAS Data Libraries22
1.12Viewing Data Sets with SAS Explorer24
1.13Using SAS System Options26
Chapter 2Getting Your Data into SAS
2.1Methods for Getting Your Data into SAS30
2.2Entering Data with the Viewtable Window32
2.3Reading Files with the Import Wizard34
2.4Telling SAS Where to Find Your Raw Data36
2.5Reading Raw Data Separated by Spaces38
2.6Reading Raw Data Arranged in Columns40
2.7Reading Raw Data Not in Standard Format42
2.8Selected Informats44
2.9Mixing Input Styles46
2.10Reading Messy Raw Data48
2.11Reading Multiple Lines of Raw Data per Observation50
2.12Reading Multiple Observations per Line of Raw Data52
2.13Reading Part of a Raw Data File54
2.14Controlling Input with Options in the INFILE Statement56
2.15Reading Delimited Files with the DATA Step58
2.16Reading Delimited Files with the IMPORT Procedure60
2.17Reading PC Files with the IMPORT Procedure62
2.18Reading PC Files with DDE64
2.19Temporary versus Permanent SAS Data Sets66
2.20Using Permanent SAS Data Sets with LIBNAME Statements68
2.21Using Permanent SAS Data Sets by Direct Referencing70
2.22Listing the Contents of a SAS Data Set72
Chapter 3Working with Your Data
3.1Creating and Redefining Variables76
3.2Using SAS Functions78
3.3Selected SAS Functions80
3.4Using IF-THEN Statements82
3.5Grouping Observations with IF-THEN/ELSE Statements84
3.6Subsetting Your Data86
3.7Working with SAS Dates88
3.8Selected Date Informats, Functions, and Formats90
3.9Using the RETAIN and Sum Statements92
3.10Simplifying Programs with Arrays94
3.11Using Shortcuts for Lists of Variable Names96
Chapter 4Sorting, Printing, and Summarizing Your Data
4.1Using SAS Procedures100
4.2Subsetting in Procedures with the WHERE Statement102
4.3Sorting Your Data with PROC SORT104
4.4Printing Your Data with PROC PRINT106
4.5Changing the Appearance of Printed Values with Formats108
4.6Selected Standard Formats110
4.7Creating Your Own Formats Using PROC FORMAT112
4.8Writing Simple Custom Reports114
4.9Summarizing Your Data Using PROC MEANS116
4.10Writing Summary Statistics to a SAS Data Set118
4.11Counting Your Data with PROC FREQ120
4.12Producing Tabular Reports with PROC TABULATE122
4.13Adding Statistics to PROC TABULATE Output124
4.14Enhancing the Appearance of PROC TABULATE Output126
4.15Changing Headers in PROC TABULATE Output128
4.16Specifying Multiple Formats for Data Cells in PROC TABULATE Output130
4.17Producing Simple Output with PROC REPORT132
4.18Using Define Statements in PROC REPORT134
4.19Creating Summary Reports with PROC REPORT136
4.20Adding Summary Breaks to PROC REPORT Output138
4.21Adding Statistics to PROC REPORT Output140
Chapter 5Enhancing Your Output with ODS
5.1Concepts of the Output Delivery System144
5.2Tracing and Selecting Procedure Output146
5.3Creating SAS Data Sets from Procedure Output148
5.4Using ODS Statements to Create HTML Output150
5.5Using ODS Statements to Create RTF Output152
5.6Using ODS Statements to Create PRINTER Output154
5.7Customizing Titles and Footnotes156
5.8Customizing PROC PRINT Output with the STYLE= Option158
5.9Customizing PROC REPORT Output with the STYLE= Option160
5.10Customizing PROC TABULATE Output with the STYLE= Option162
5.11Adding Traffic-Lighting to Your Output164
5.12Selected Style Attributes166
Chapter 6Modifying and Combining SAS Data Sets
6.1Modifying a Data Set Using the SET Statement170
6.2Stacking Data Sets Using the SET Statement172
6.3Interleaving Data Sets Using the SET Statement174
6.4Combining Data Sets Using a One-to-One Match Merge176
6.5Combining Data Sets Using a One-to-Many Match Merge178
6.6Merging Summary Statistics with the Original Data180
6.7Combining a Grand Total with the Original Data182
6.8Updating a Master Data Set with Transactions184
6.9Using SAS Data Set Options186
6.10Tracking and Selecting Observations with the IN= Option188
6.11Writing Multiple Data Sets Using the OUTPUT Statement190
6.12Making Several Observations from One Using the OUTPUT Statement192
6.13Changing Observations to Variables Using PROC TRANSPOSE194
6.14Using SAS Automatic Variables196
Chapter 7Writing Flexible Code with the SAS Macro Facility
7.1Macro Concepts200
7.2Substituting Text with Macro Variables202
7.3Creating Modular Code with Macros204
7.4Adding Parameters to Macros206
7.5Writing Macros with Conditional Logic208
7.6Writing Data-Driven Programs with CALL SYMPUT210
7.7Debugging Macro Errors212
Chapter 8Using Basic Statistical Procedures
8.1Examining the Distribution of Data with PROC UNIVARIATE216
8.2Producing Statistics with PROC MEANS218
8.3Testing Categorical Data with PROC FREQ220
8.4Examining Correlations with PROC CORR222
8.5Using PROC REG for Simple Regression Analysis224
8.6Reading the Output of PROC REG226
8.7Using PROC ANOVA for One-Way Analysis of Variance228
8.8Reading the Output of PROC ANOVA230
8.9Graphical Interfaces for Statistical Analysis232
Chapter 9Exporting Your Data
9.1Methods for Exporting Your Data236
9.2Writing Files Using the Export Wizard238
9.3Writing Delimited Files with the EXPORT Procedure240
9.4Writing PC Files with the EXPORT Procedure242
9.5Writing Raw Data Files with the DATA Step244
9.6Writing Delimited and HTML Files using ODS246
9.7Sharing SAS Data Sets with Other Types of Computers248
Chapter 10Debugging Your SAS Programs
10.1Writing SAS Programs That Work252
10.2Fixing Programs That Don't Work254
10.3Searching for the Missing Semicolon256
10.4Note: INPUT Statement Reached Past the End of the Line258
10.5Note: Lost Card260
10.6Note: Invalid Data262
10.7Note: Missing Values Were Generated264
10.8Note: Numeric Values Have Been Converted to Character (or Vice Versa)266
10.9DATA Step Produces Wrong Results but No Error Message268
10.10The DATA Step Debugger270
10.11Error: Invalid Option, Error: The Option Is Not Recognized, or Error: Statement Is Not Valid272
10.12Note: Variable Is Uninitialized or Error: Variable Not Found274
10.13SAS Truncates a Character Variable276
10.14SAS Stops in the Middle of a Job278
10.15SAS Runs Out of Memory or Disk Space280
Appendices
AWhere to Go from Here284
BGetting Help from SAS Technical Support286
CAn Overview of SAS Products288
DComing to SAS from SPSS291
EComing to SAS from a Programming Language298
FComing to SAS from SQL302
Index309

Customer Reviews

Average Review:

Post to your social network

     

Most Helpful Customer Reviews

See all customer reviews