×

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

For a better shopping experience, please upgrade now.

Basics of S-PLUS / Edition 4
     

Basics of S-PLUS / Edition 4

by Andreas Krause
 

See All Formats & Editions

ISBN-10: 0387261095

ISBN-13: 2900387261095

Pub. Date: 07/01/2005

Publisher: Springer New York

This book explains the basics of S-PLUS in a clear style at a level suitable for people with little computing or statistical knowledge. Unlike the S-PLUS manuals, it is not comprehensive, but instead introduces the most important ideas of S-PLUS through the use of many examples. Each chapter also includes a collection of exercises that are accompanied by fully

Overview

This book explains the basics of S-PLUS in a clear style at a level suitable for people with little computing or statistical knowledge. Unlike the S-PLUS manuals, it is not comprehensive, but instead introduces the most important ideas of S-PLUS through the use of many examples. Each chapter also includes a collection of exercises that are accompanied by fully worked-out solutions and detailed comments. The volume is rounded off with practical hints on how efficient work can be performed in S-PLUS. The book is well suited for self-study and as a textbook.

The third edition is based on S-PLUS Version 6 for Windows and UNIX and has been completely updated. It covers the underlying S Version 4 and the graphical user interfaces for Windows and UNIX. A new section of the details of factor objects has been added, Trellis graphs are used in more depth, and new exercises (and solutions) are provided. The book serves equally well as an introduction to the R system, and concludes with a comparison of S-PLUS and R.

Product Details

ISBN-13:
2900387261095
Publisher:
Springer New York
Publication date:
07/01/2005
Series:
Statistics and Computing Series
Edition description:
4th ed. 2005
Pages:
444

Related Subjects

Table of Contents

Prefacev
Figuresxv
Tablesxix
1Introduction1
1.1The History of S and S-Plus2
1.2S-Plus on Different Operating Systems4
1.3Notational Conventions6
2Graphical User Interface7
2.1Introduction7
2.2System Overview8
2.2.1Using a Mouse9
2.2.2Object Explorer9
2.2.3Commands Window9
2.2.4Toolbars10
2.2.5Graph Sheets10
2.2.6Script Window10
2.3Getting Started with the Interface11
2.3.1Importing Data11
2.3.2Graphs11
2.3.3Data and Statistics13
2.3.4Customizing the Toolbars13
2.3.5Chapters14
2.4Detailed Use of the GUI Interface16
2.5Object Explorer16
2.6Help18
2.7Data Export19
2.8Working Directory21
2.9Data Import22
2.10Data Summaries25
2.11Graphs27
2.12Trellis Graphs34
2.13Linear Regression36
2.14PowerPoint (Windows Only)41
2.15Excel (Windows Only)41
2.16Script Window43
2.17UNIX/Linux GUI45
2.18Summary54
2.19Exercises55
2.20Solutions56
3A First Session71
3.1General Information71
3.1.1Starting and Quitting72
3.1.2The Help System72
3.1.3Before Beginning73
3.2Simple Structures74
3.2.1Arithmetic Operators74
3.2.2Assignments75
3.2.3The Concatenate Command: c77
3.2.4The Sequence Command: seq78
3.2.5The Replicate Command: rep79
3.3Mathematical Operations80
3.4Use of Brackets81
3.5Logical Values83
3.6Review85
3.7Exercises89
3.8Solutions90
4A Second Session93
4.1Constructing and Manipulating Data93
4.1.1Matrices94
4.1.2Arrays99
4.1.3Data Frames102
4.1.4Lists104
4.2Introduction to Functions106
4.3Introduction to Missing Values106
4.4Merging Data108
4.5Putting It All Together108
4.6Exercises111
4.7Solutions113
5Graphics119
5.1Basic Graphics Commands119
5.2Graphics Devices120
5.2.1Working with Multiple Graphics Devices122
5.3Plotting Data122
5.3.1The plot Command123
5.3.2Modifying the Data Display124
5.3.3Modifying Figure Elements124
5.4Adding Elements to Existing Plots125
5.4.1Functions to Add Elements to Graphs127
5.4.2More About abline128
5.4.3More on Adding Axes129
5.4.4Adding Text to Graphs131
5.5Setting Options131
5.6Figure Layouts133
5.6.1Layouts Using Trellis Graphs134
5.6.2Matrices of Graphs134
5.6.3Multiple-Screen Graphs135
5.6.4Figures of Specified Size136
5.7Exercises138
5.8Solutions139
6Trellis Graphics145
6.1An Example146
6.2Trellis Basics148
6.2.1Trellis Syntax148
6.2.2Trellis Functions149
6.2.3Displaying and Storing Graphs149
6.3Output Devices150
6.4Customizing Trellis Graphs152
6.4.1Setting Options152
6.4.2Arranging the Layout of a Trellis Graph153
6.4.3Layout153
6.4.4Ordering of Graphs155
6.4.5Changing Graph Elements156
6.4.6Modifying Panel Strips156
6.4.7Arranging Several Graphs on a Single Page157
6.4.8Updating Existing Trellis Graphs158
6.4.9Writing Panel Functions159
6.5Further Hints162
6.5.1Graphing Individual Profiles162
6.5.2Preparing Data to Use for Trellis163
6.5.3The subset Option164
6.5.4The key Option164
6.5.5The subscripts Option in Panel Functions165
6.6Exercises166
6.7Solutions168
7Exploring Data179
7.1Descriptive Data Exploration179
7.2Graphical Exploration190
7.2.1Interactive Dynamic Graphics205
7.2.2Old-Style Graphics205
7.3Distributions and Related Functions207
7.4Confirmatory Statistics and Hypothesis Testing212
7.5Missing and Infinite Values217
7.5.1Testing for Missing Values218
7.5.2Supplying Data with Missing Values to Functions218
7.5.3Missing Values in Graphs219
7.5.4Infinite Values220
7.6Exercises222
7.7Solutions225
8Statistical Modeling237
8.1Introductory Examples237
8.1.1Regression237
8.1.2Regression Diagnostics239
8.2Statistical Models241
8.3Model Syntax242
8.4Regression243
8.4.1Linear Regression and Modeling Techniques244
8.4.2ANOVA247
8.4.3Logistic Regression249
8.4.4Survival Data Analysis251
8.4.5Endnote253
8.5Exercises254
8.6Solutions257
9Programming271
9.1Lists271
9.1.1Adding and Deleting List Elements273
9.1.2Naming List Elements274
9.1.3Applying the Same Function to List Elements276
9.1.4Unlisting a List280
9.1.5Generating a List by Using split280
9.2Writing Functions280
9.2.1Documenting Functions283
9.2.2Scope of Variables283
9.2.3Parameters and Defaults284
9.2.4Passing an Unspecified Number of Parameters to a Function286
9.2.5Testing for Existence of an Argument287
9.2.6Returning Warnings and Errors288
9.2.7Using Function Arguments in Graphics Labels288
9.3Iteration289
9.3.1The for Loop289
9.3.2The while Loop290
9.3.3The repeat Loop291
9.3.4Vectorizing a Loop291
9.3.5Large Loops293
9.4Debugging: Searching for Errors294
9.4.1Syntax Errors295
9.4.2Invalid Arguments296
9.4.3Execution or Run-Time Errors296
9.4.4Logical Errors297
9.5Output Using the cat Function300
9.6The paste Function301
9.7Exercises303
9.8Solutions304
10Object-Oriented Programming309
10.1Creating Classes and Objects311
10.2Creating Methods314
10.3Debugging319
10.4Help320
10.5Summary and Overview320
10.6Exercises321
10.7Solutions322
11Input and Output335
11.1Reading S-Plus Commands from a File: The source Function335
11.2Data Import/Export: Easiest Method336
11.3Data Import/Export: General Method338
11.4Data Import/Export: Basic Method339
11.5Reading Data from the Terminal340
11.6Editing Data341
11.7Transferring Data342
11.8Recording a Session342
11.9Exercises344
11.10Solutions345
12S-Plus Internals349
12.1How S-PLUS Works Under UNIX349
12.1.1The Working Chapter350
12.1.2Customization on Start-Up and Exit350
12.2How S-PLUS Works Under Windows352
12.2.1Command Line Options352
12.2.2Start-up and Exit Functions353
12.3Storing Mechanism354
12.4Levels of Calls355
12.5Exercises358
12.6Solutions359
13Tips and Tricks361
13.1The Process of Developing a Function361
13.1.1Setting up an Editor and Running the Code in S-PLUS362
13.2Useful Techniques363
13.2.1Housekeeping: Cleaning Up Directories363
13.2.2Storing and Restoring Graphical Parameters364
13.2.3Naming of Objects364
13.2.4Repeating Commands365
13.3Factors365
13.3.1Creating Factors and Ordered Factors366
13.3.2Internal Representation of Factors368
13.3.3Where Levels Play a Role369
13.3.4Where Factors Can Lead Their Own Lives369
13.3.5How Factors Come Into Life371
13.3.6Adding and Dropping Factor Levels373
13.4Treating Data Frames as Lists374
13.5Batch Jobs375
13.6Incorporating and Accessing C and Fortran Programs376
13.6.1Creating Shared Object Files Under UNIX377
13.6.2Creating DLLs Under Windows377
13.6.3Writing the C Code378
13.6.4Calling C Routines378
13.7Libraries380
13.8Including Graphs in Text Processors381
13.8.1Generating Graphs for Windows Applications381
13.8.2Generating PostScript Graphs382
13.8.3PostScript Graphs in LATEX384
13.8.4If You Don't Have a PostScript Printer385
13.8.5Greek Letters in Graphs385
13.9Exercises387
13.10Solutions389
14Information Sources on and Around S-Plus395
14.1S-News: Exchanging Information with Other Users395
14.2The StatLib Server396
14.3What Next?397
15R399
15.1Development399
15.2Some Similarities Between R and S400
15.3Some Differences Between R and S400
15.3.1Language400
15.3.2Libraries400
15.3.3Trellis-Type Graphs401
15.3.4Colors and Lines401
15.3.5Data Import and Export Formats401
15.3.6Memory Handling401
15.3.7Mathematical Formulae in Graphs401
15.3.8Graphical User Interfaces402
15.3.9Start-Up Mechanism402
15.3.10Windows Integration402
15.3.11Support402
16Bibliography403
16.1Print Bibliography403
16.2On-Line Bibliography405
16.2.1S-PLUS Related Sources405
16.2.2TEX-Related Sources406
16.2.3Other Sources407
Index409

Customer Reviews

Average Review:

Post to your social network

     

Most Helpful Customer Reviews

See all customer reviews