CHAPMAN & HALL/CRC
Texts in Statistical Science Series
Series Editors
Bradley P.Carlin, University of Minnesota, USA
Chris Chatfield, University of Bath, UK
Martin Tanner, Northwestern University, USA
Jim Zidek, University of British Columbia, Canada
Analysis of Failure and Survival Data
Peter J.Smith
The Analysis and Interpretation of Multivariate Data for Social Scientists
David J.Bartholomew, Fiona Steele, Irini Moustaki, and Jane Galbraith
The Analysis of Time Series—An Introduction, Sixth Edition
Chris Chatfield
Applied Bayesian Forecasting and Time Series Analysis
A.Pole, M.West and J.Harrison
Applied Nonparametric Statistical Methods, Third Edition
P.Sprent and N.C.Smeeton
Applied Statistics—Handbook of GENSTAT Analysis
E.J.Snell and H.Simpson
Applied Statistics—Principles and Examples
D.R.Cox and E.J.Snell
Bayes and Empirical Bayes Methods for Data Analysis, Second Edition
Bradley P.Carlin and Thomas A.Louis
Bayesian Data Analysis, Second Edition
Andrew Gelman, John B.Carlin, Hal S.Stern, and Donald B.Rubin
Beyond ANOVA—Basics of Applied Statistics
R.G.Miller, Jr.
Computer-Aided Multivariate Analysis, Fourth Edition
A.A.Afifi and V.A.Clark
A Course in Categorical Data Analysis
T.Leonard
A Course in Large Sample Theory
T.S.Ferguson
Data Driven Statistical Methods
P.Sprent
Decision Analysis—A Bayesian Approach
J.Q.Smith
Elementary Applications of Probability Theory, Second Edition
H.C.Tuckwell
Elements of Simulation
B.J.T.Morgan
Epidemiology—Study Design and Data Analysis, Second Edition
M.Woodward
Essential Statistics, Fourth Edition
D.A.G.Rees
Extending the Linear Model with R: Generalized Linear, Mixed Effects and
Nonparametric Regression Models
Julian J.Faraway
A First Course in Linear Model Theory
Nalini Ravishanker and Dipak K.Dey
Interpreting Data—A First Course in Statistics
A.J.B.Anderson
An Introduction to Generalized Linear Models, Second Edition
A.J.Dobson
Introduction to Multivariate Analysis
C.Chatfield and A.J.Collins
Introduction to Optimization Methods and Their Applications in Statistics
B.S.Everitt
Large Sample Methods in Statistics
P.K.Sen and J.da Motta Singer
Linear Models with R
Julian J.Faraway
Markov Chain Monte Carlo—Stochastic Simulation for Bayesian Inference
D.Gamerman
Mathematical Statistics
K.Knight
Modeling and Analysis of Stochastic Systems
V.Kulkarni
Modelling Binary Data, Second Edition
D.Collett
Modelling Survival Data in Medical Research, Second Edition
D.Collett
Multivariate Analysis of Variance and Repeated Measures—A Practical Approach
for Behavioural Scientists
D.J.Hand and C.C.Taylor
Multivariate Statistics—A Practical Approach
B.Flury and H.Riedwyl
Practical Data Analysis for Designed Experiments
B.S.Yandell
Practical Longitudinal Data Analysis
D.J.Hand and M.Crowder
Practical Statistics for Medical Research
D.G.Altman
Probability—Methods and Measurement
A.O’Hagan
Problem Solving—A Statistician’s Guide, Second Edition
C.Chatfield
Randomization, Bootstrap and Monte Carlo Methods in Biology, Second Edition
B.F.J.Manly
Readings in Decision Analysis
S.French
Sampling Methodologies with Applications
Poduri S.R.S.Rao
Spatial Data Analysis
Oliver Schabenberger and Carol A.Gotway
Statistical Analysis of Reliability Data
M.J.Crowder, A.C.Kimber, T.J.Sweeting, and R.L.Smith
Statistical Methods for Spatial Data Analysis
Oliver Schabenberger and Carol A.Gotway
Statistical Methods for SPC and TQM
D.Bissell
Statistical Methods in Agriculture and Experimental Biology, Second Edition
R.Mead, R.N.Curnow, and A.M.Hasted
Statistical Process Control—Theory and Practice, Third Edition
G.B.Wetherill and D.W.Brown
Statistical Theory, Fourth Edition
B.W.Lindgren
Statistics for Accountants
S.Letchford
Statistics for Epidemiology
Nicholas P.Jewell
Statistics for Technology—A Course in Applied Statistics, Third Edition
C.Chatfield
Statistics in Engineering—A Practical Approach
A.V.Metcalfe
Statistics in Research and Development, Second Edition
R.Caulcutt
Survival Analysis Using S—Analysis of Time-to-Event Data
Mara Tableman and Jong Sung Kim
The Theory of Linear Models
B.Jørgensen
Texts in Statistical Science
Extending the Linear Model with
R
Generalized Linear, Mixed Effects and Nonparametric Regression
Models
Julian J.Faraway
Boca Raton London New York
Published in 2006 by Chapman & Hall/CRC Taylor & Francis Group 6000 Broken Sound
Parkway NW, Suite 300 Boca Raton, FL 33487–2742
© 2006 by Taylor & Francis Group, LLC
Chapman & Hall/CRC is an imprint of Taylor & Francis Group
This edition published in the Taylor & Francis e-Library, 2006.
“ To purchase your own copy of this or any of Taylor & Francis or Routledge’s collection of
thousands of eBooks please go to http://www.ebookstore.tandf.co.uk/.”
No claim to original U.S. Government works
ISBN 0-203-49228-5 Master e-book ISBN
ISBN 0-203-62105-0 (Adobe e-Reader Format)
International Standard Book Number-10:1-58488-424-X (Print Edition) (Hardcover)
International Standard Book Number-13:978-1-58488-424-8 (Print Edition) (Hardcover)
Library of Congress Card Number 2005054822
This book contains information obtained from authentic and highly regarded sources. Reprinted
material is quoted with permission, and sources are indicated. A wide variety of references are
listed. Reasonable efforts have been made to publish reliable data and information, but the author
and the publisher cannot assume responsibility for the validity of all materials or for the
consequences of their use.
No part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any
electronic, mechanical, or other means, now known or hereafter invented, including photocopying,
microfilming, and recording, or in any information storage or retrieval system, without written
permission from the publishers.
For permission to photocopy or use material electronically from this work, please access
http://www.copyright.com/ (http://www.copyright.com/) or contact the Copyright Clearance
Center, Inc. (CCC) 222 Rosewood Drive, Danvers, MA 01923, 978–750–8400. CCC is a not-for-
profit organization that provides licenses and registration for a variety of users. For organizations
that have been granted a photocopy license by the CCC, a separate system of payment has been
arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and
are used only for identification and explanation without intent to infringe.
Library of Congress Cataloging-in-Publication Data
Faraway, Julian James. Extending the linear model with R: generalized linear, mixed effects and
nonparametric regression models/Julian J.Faraway. p. cm.—(Texts in statistical science) Includes
bibliographical references and index. ISBN 1-58488-424-X 1. Analysis of variance. 2. Regression
analysis. 3. R (Computer program languages)—Mathematical models. I. Title. II. Series.
QA279.F368 2006 519.5–dc22 2005054822