Professional Documents
Culture Documents
ebook download (eBook PDF) A Guide to Crisis Intervention 5th Edition all chapter
ebook download (eBook PDF) A Guide to Crisis Intervention 5th Edition all chapter
http://ebooksecure.com/product/ebook-pdf-a-guide-to-crisis-
intervention-6th-edition/
https://ebooksecure.com/download/a-guide-to-crisis-intervention-
ebook-pdf/
http://ebooksecure.com/product/ebook-pdf-crisis-intervention-
strategies-7th-edition/
http://ebooksecure.com/product/ebook-pdf-crisis-intervention-
strategies-8th-edition/
Crisis Assessment, Intervention, and Prevention 3rd
Edition (eBook PDF)
http://ebooksecure.com/product/crisis-assessment-intervention-
and-prevention-3rd-edition-ebook-pdf/
http://ebooksecure.com/product/ebook-pdf-crisis-communications-a-
casebook-approach-5th-edition/
http://ebooksecure.com/product/ebook-pdf-social-work-with-older-
adults-a-biopsychosocial-approach-to-assessment-and-
intervention-5th-edition/
http://ebooksecure.com/product/ebook-pdf-biology-a-guide-to-the-
natural-world-5th-edition/
http://ebooksecure.com/product/original-pdf-information-systems-
a-managers-guide-to-harnessing-technology-5th-edition/
Statistics
Features
• Presents straightforward descriptions of
how to use R and interpret the results
• Gives an introduction to R for novices,
covering basic concepts and common data
manipulation techniques
• Shows how to obtain informative graphical
output by applying the appropriate R func-
tions
• Includes more examples and exercises that
encourage hands-on practice with R
• Offers the data, R code, and lecture slides in
the HSAUR3 package available from CRAN THIRD
EDITION Torsten Hothorn and Brian S. Everitt
K21384
Contents
1 An Introduction to R 1
1.1 What is R? 1
1.2 Installing R 2
1.3 Help and Documentation 4
1.4 Data Objects in R 5
1.5 Data Import and Export 9
1.6 Basic Data Manipulation 11
1.7 Computing with Data 14
1.8 Organizing an Analysis 20
1.9 Summary of Findings 21
1.10 Final Comments 23
3 Simple Inference 47
3.1 Introduction 47
3.2 Statistical Tests 51
3.3 Analysis Using R 55
3.4 Summary of Findings 65
3.5 Final Comments 66
4 Conditional Inference 69
4.1 Introduction 69
4.2 Conditional Test Procedures 72
4.3 Analysis Using R 74
vii
viii CONTENTS
4.4 Summary of Findings 81
4.5 Final Comments 81
5 Analysis of Variance 83
5.1 Introduction 83
5.2 Analysis of Variance 86
5.3 Analysis Using R 87
5.4 Summary of Findings 98
5.5 Final Comments 99
17 Meta-Analysis 313
17.1 Introduction 313
17.2 Systematic Reviews and Meta-Analysis 315
17.3 Statistics of Meta-Analysis 317
17.4 Analysis Using R 319
17.5 Meta-Regression 322
17.6 Publication Bias 323
17.7 Summary of Findings 325
17.8 Final Comments 325
Bibliography 399
Index 415
Preface to Third Edition
Again like the first two editions, this third edition of A Handbook of Statistical
Analyses using R is intended as a guide to data analysis with the R system for
statistical computing. In this edition we have added three new chapters, one
on quantile regression, one on missing values, and one on Bayesian inference.
There is also extra material in several chapters, for example, the chapter on
logistic regression now includes a description of a regression model for ordered
categorical response variables. And many chapters contain extra exercises and
more detailed explanation of the R code. Lastly every chapter now has a
penultimate section summarizing the results of the analyses carried out in
the chapter. A new version of the HSAUR package, now called HSAUR3
for obvious reasons, is available from the Comprehensive R Archive Network
(http://CRAN.R-project.org).
Many readers told us that they use the book as course material when
they teach introductory statistics courses. For some selected chapters, Sweave
sources of slides are now available in the HSAUR3 source package that can
be used as additional material in such courses.
We would like to thank Nora Fenske and Leonhard Held for providing feed-
back on the new Chapters 12 and 18.
xi
Preface to Second Edition
Like the first edition this book is intended as a guide to data analysis with
the R system for statistical computing. New chapters on graphical displays,
generalized additive models, and simultaneous inference have been added to
this second edition and a section on generalized linear mixed models completes
the chapter that discusses the analysis of longitudinal data where the response
variable does not have a normal distribution. In addition, new examples and
additional exercises have been added to several chapters. We have also taken
the opportunity to correct a number of errors that were present in the first
edition. Most of these errors were kindly pointed out to us by a variety of peo-
ple to whom we are very grateful, especially Guido Schwarzer, Mike Cheung,
Tobias Verbeke, Yihui Xie, Lothar Häberle, and Radoslav Harman.
We learned that many instructors use our book successfully for introductory
courses in applied statistics. We have had the pleasure to give some courses
based on the first edition of the book ourselves and we are happy to share
slides covering many sections of particular chapters with our readers. LATEX
sources and PDF versions of slides covering several chapters are available from
the second author upon request.
A new version of the HSAUR package, now called HSAUR2 for obvious
reasons, is available from CRAN. Basically the package vignettes have been
updated to cover the new and modified material as well. Otherwise, the tech-
nical infrastructure remains as described in the preface to the first edition,
with two small exceptions: names of R add-on packages are now printed in
bold font and we refrain from showing significance stars in model summaries.
Lastly we would like to thank Thomas Kneib and Achim Zeileis for com-
menting on the newly added material and again the CRC Press staff, in par-
ticular Rob Calver, for their support during the preparation of this second
edition.
xiii
Preface to First Edition
This book is intended as a guide to data analysis with the R system for sta-
tistical computing. R is an environment incorporating an implementation of
the S programming language, which is powerful and flexible and has excellent
graphical facilities (R Development Core Team, 2014b). In the Handbook we
aim to give relatively brief and straightforward descriptions of how to conduct
a range of statistical analyses using R. Each chapter deals with the analy-
sis appropriate for one or several data sets. A brief account of the relevant
statistical background is included in each chapter along with appropriate ref-
erences, but our prime focus is on how to use R and how to interpret results.
We hope the book will provide students and researchers in many disciplines
with a self-contained means of using R to analyze their data.
R is an open-source project developed by dozens of volunteers for more than
ten years now and is available from the Internet under the General Public Li-
cense. R has become the lingua franca of statistical computing. Increasingly,
implementations of new statistical methodology first appear as R add-on pack-
ages. In some communities, such as in bioinformatics, R already is the primary
workhorse for statistical analyses. Because the sources of the R system are open
and available to everyone without restrictions and because of its powerful lan-
guage and graphical capabilities, R has started to become the main computing
engine for reproducible statistical research (Leisch, 2002a,b, 2003, Leisch and
Rossini, 2003, Gentleman, 2005). For a reproducible piece of research, the orig-
inal observations, all data preprocessing steps, the statistical analysis as well
as the scientific report form a unity and all need to be available for inspection,
reproduction, and modification by the readers.
Reproducibility is a natural requirement for textbooks such as the Handbook
of Statistical Analyses Using R and therefore this book is fully reproducible
using an R version greater or equal to 2.2.1. All analyses and results, including
figures and tables, can be reproduced by the reader without having to retype
a single line of R code. The data sets presented in this book are collected
in a dedicated add-on package called HSAUR accompanying this book. The
package can be installed from the Comprehensive R Archive Network (CRAN)
via
R> install.packages("HSAUR")
and its functionality is attached by
R> library("HSAUR")
The relevant parts of each chapter are available as a vignette, basically a
xv
xvi PREFACE TO FIRST EDITION
document including both the R sources and the rendered output of every
analysis contained in the book. For example, the first chapter can be inspected
by
R> vignette("Ch_introduction_to_R", package = "HSAUR")
and the R sources are available for reproducing our analyses by
R> edit(vignette("Ch_introduction_to_R", package = "HSAUR"))
An overview on all chapter vignettes included in the package can be obtained
from
R> vignette(package = "HSAUR")
We welcome comments on the R package HSAUR, and where we think these
add to or improve our analysis of a data set we will incorporate them into the
package and, hopefully at a later stage, into a revised or second edition of the
book.
Plots and tables of results obtained from R are all labeled as ‘Figures’ in
the text. For the graphical material, the corresponding figure also contains
the ‘essence’ of the R code used to produce the figure, although this code may
differ a little from that given in the HSAUR package, since the latter may
include some features, for example thicker line widths, designed to make a
basic plot more suitable for publication.
We would like to thank the R Development Core Team for the R system, and
authors of contributed add-on packages, particularly Uwe Ligges and Vince
Carey for helpful advice on scatterplot3d and gee. Kurt Hornik, Ludwig A.
Hothorn, Fritz Leisch and Rafael Weißbach provided good advice with some
statistical and technical problems. We are also very grateful to Achim Zeileis
for reading the entire manuscript, pointing out inconsistencies or even bugs,
and for making many suggestions which have led to improvements. Lastly we
would like to thank the CRC Press staff, in particular Rob Calver, for their
support during the preparation of the book. Any errors in the book are, of
course, the joint responsibility of the two authors.
xvii
xviii LIST OF FIGURES
3.4 R output of the Wilcoxon rank sum test for the roomwidth
data. 59
3.5 Boxplot and normal probability plot for differences between
the two mooring methods. 60
3.6 R output of the paired t-test for the waves data. 61
3.7 R output of the Wilcoxon signed rank test for the waves
data. 61
3.8 Enhanced scatterplot of water hardness and mortality,
showing both the joint and the marginal distributions and,
in addition, the location of the city by different plotting
symbols. 62
3.9 R output of Pearsons’ correlation coefficient for the water
data. 63
3.10 R output of the chi-squared test for the pistonrings data. 63
3.11 Association plot of the residuals for the pistonrings data. 64
3.12 R output of McNemar’s test for the rearrests data. 65
3.13 R output of an exact version of McNemar’s test for the
rearrests data computed via a binomial test. 65
5.1 Plot of mean weight gain for each level of the two factors. 88
5.2 R output of the ANOVA fit for the weightgain data. 89
5.3 Interaction plot of type and source. 90
5.4 Plot of mean litter weight for each level of the two factors for
the foster data. 91
5.5 Graphical presentation of multiple comparison results for the
foster feeding data. 94
5.6 Scatterplot matrix of epoch means for Egyptian skulls data. 96
9.1 Initial tree for the body fat data with the distribution of body
fat in terminal nodes visualized via boxplots. 176
9.2 Pruned regression tree for body fat data. 177
9.3 Observed and predicted DXA measurements. 178
9.4 Pruned classification tree of the glaucoma data with class
distribution in the leaves. 179
9.5 Estimated class probabilities depending on two important
variables. The 0.5 cut-off for the estimated glaucoma proba-
bility is depicted as a horizontal line. Glaucomateous eyes are
plotted as circles and normal eyes are triangles. 182
9.6 Conditional inference tree with the distribution of body fat
content shown for each terminal leaf. 184
9.7 Conditional inference tree with the distribution of glaucoma-
teous eyes shown for each terminal leaf. 184
9.8 Conditional inference tree with the distribution of self-
reported happiness shown for each terminal leaf. The levels
of happiness have been abbreviated (A: very unhappy, B:
not too happy, C: somewhat happy; D: very happy). The
justmin argument ensures that split descriptions longer than
10 characters are displayed over two lines. 185
19.1 Scatterplot matrix for the heptathlon data (all countries). 351
19.2 Scatterplot matrix for the heptathlon data after removing
observations of the PNG competitor. 353
19.3 Barplot of the variances explained by the principal compo-
nents (with observations for PNG removed). 356
19.4 Biplot of the (scaled) first two principal components (with
observations for PNG removed). 357
19.5 Scatterplot of the score assigned to each athlete in 1988 and
the first principal component. 358
OTHER BOOKS
BY J. S. FLETCHER
THE BARTENSTEIN MYSTERY
THE DOUBLE CHANCE
A. L. BURT COMPANY
Publishers · New York
The Newest Books in Popular
Copyright Fiction
Only Books of Superior Merit and Popularity Are
Published in This List
BARBERRY BUSH. By Kathleen Norris.
The absorbing story of a woman who is deserted by
her temperamental artist-husband, and the manner
in which she finally attains happiness.
THE HIDDEN KINGDOM. By Francis Beeding.
Three Secret Service agents travel from Spain to
Mongolia to block a conspiracy, gigantic, terrible,
involving the fate of the world.
THE GENTLE GRAFTER. By O. Henry.
Delightfully humorous tales, notable for their lively
portraiture of character, of confidence men and their
methods.
THE HOUSE OF HAPPINESS AND OTHER STORIES.
By Ethel M. Dell.
The romantic story of an elopement and the
inevitable tragedy that follows the selfish act of an
unruly, head-strong girl.
FLAMINGO. By Mary Borden.
The vast, animated, mechanical chaos of human life
in a great city is magnificently recorded in this
dynamic novel of New York.
THE HOTEL. By Elizabeth Bowen.
A sincere and modern story dealing with the lives
and love affairs of a group of people in a Continental
hotel.
CURSED BE THE TREASURE. By H. B. Drake.
Buried gold, a mad captain and smugglers are found
in this adventurous novel of pluck and daring.
ALL AT SEA. By Carolyn Wells.
Following the clue of the French dolls, Fleming
Stone sounds fathoms deep to the heart of a murder
mystery.
THE THREE DAYS’ TERROR. By J. S. Fletcher.
Warned by the unknown “Dictators,” masters of a
new destructive Force, that London was to be
destroyed, the inhabitants of the City fled. Three
days of terror followed.
OVER THE BOAT-SIDE. By Mathilde Eiker.
A supremely realistic and ironic tale of tangled
modern marriages and a woman who threw family
traditions “Over the Boat-Side.”
WILD-HORSE RANCH. By Reginald C. Barker.
The Arizona desert and the Painted Canyon country
furnish the background for this exciting Western tale
of outlaws, rustlers and mystery.
ANGEL ESQUIRE. By Edgar Wallace.
A superlatively good mystery story based on a
puzzling cryptogram, which held the key to a fortune.
THE BLACK JOKER. By Isabel Ostrander.
The strange behavior of a pack of cards and a series
of terrifying events feature this tale of a girl’s
mysterious adventures.
THE HOUSE OF SIN. By Allen Upward.
Dr. Tarleton, the famous Home Office poison expert,
unravels a complicated web of mystery and intrigue
and traps a murderer.
UP THE RITO. By Jarvis Hall.
An invigorating novel of New Mexico and an old
Indian legend that points the way to a lost gold mine.
NICK OF THE WOODS. By Robert Montgomery Bird.
A romantic tale of the early Kentucky settlers; of
soldiers, renegades and Indian fighting on the Old
Frontier.
For sale by most booksellers at the popular price. Published by
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.