 
Summary: INTRODUCTION TO STATISTICAL
MODELLING IN R
P.M.E.Altham, Statistical Laboratory, University of Cambridge.
May 24, 2011
Contents
1 Getting started: books and 2 tiny examples 5
2 Ways of reading in data, tables, text, matrices. Linear regression
and basic plotting 8
3 A Fun example showing you some plotting and regression facilities 19
4 A oneway anova, and a qqnorm plot 25
5 A 2way anova, how to set up factor levels, and boxplots 28
6 A 2way layout with missing data, ie an unbalanced design 32
7 Logistic regression for the binomial distribution 35
8 The space shuttle temperature data: a cautionary tale 38
9 Binomial and Poisson regression 41
10 Analysis of a 2way contingency table 45
11 Poisson regression: some examples 49
12 Fisher's exact test, 3way contingency tables, and Simpson's para
dox 58
13 Defining a function in R, to plot the contours of a loglikelihood
