S guide Introductory Guide to S -Plus Final Version B D Ripley Professor of Applied Statistics University of Oxford e-mail ? ? ? ? ? ' ? August CPreface This guide was originally written for graduate students in Statistics at the University of Oxford The

Introductory Guide to S -Plus Final Version B D Ripley Professor of Applied Statistics University of Oxford e-mail ? ? ? ? ? ' ? August CPreface This guide was originally written for graduate students in Statistics at the University of Oxford The ?rst versions were based closely on notes by Dr Bill Venables of the Department of Statistics at the University of Adelaide but have been updated to re ect later versions of S the extensions of S -Plus and local facilities Several sections in particular and remain close to Dr Venables ? original material This guide will no longer be updated following the publication of Venables Ripley See p Where that takes a signi ?cantly better approach than earlier editions of these notes the material formerly here has been dropped The guide is to S -Plus but much of it will be relevant to users of the underlying S Extensions which are only in S -Plus include dynamic graphics and A and the classical statistics functions The terminology of this guide is intended to be precise only referring to S -Plus rather than S for features unique to S -Plus These notes were written for a particular environment S - Plus on Sun SparcStations running the Open Windows windowing system You will ?nd a number of di ?erences depending on your local environment It will help to have the library B CEDGF available ?? it should be in the same source as these notes It can be also be obtained by anonymous ftp from H I Q P GR US TVB W I W TXGR YUT Ia TbE P in ?le a E ac dEec f EC D Fg T h gpT i It is available from B W I W C B see Section A as Q GD A qr fCasD Fr t R H d Alternatively C I Q F uwav fx ad ad y from Venables Ripley can be used This guide may be freely copied and redistributed for any educational purpose including commercial courses provided its authorship B D Ripley and W N Venables is clearly stated Where appropriate a small charge to cover the costs of production and distribution only may be made B D Ripley University of Oxford th August i CContents ii Contents Introduction Starting and Finishing Getting Help Hardcopy Output Datasets A First Session Simple Data Manipulation Vectors Vector Arithmetic Generating Regular Sequences of Numbers Logical Vectors Missing Values Character Vectors Index Vectors Selecting and Modifying Subsets of a Data Set Arrays Lists Data Frames Reading data into S Writing out data Graphics Graphical Parameters Some Basic Plotting Functions Interaction with Plots Brush and Spin Equally-scaled plots CContents iii Statistical Summaries Arithmetical Summaries Histograms and Stem-and-Leaf Plots Boxplots Distributions Q -Q Plots Classical Statistics Handling Categorical Data The Function W I E sC F u h h y and Ragged Arrays Loops and Conditional Execution Writing Your Own Functions Statistical Models Model Formulas One-way Layouts Designed Experiments Generalized Linear Models

  • 37
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager