11.07.2015 Views

INTRODUCTION TO STATISTICAL MODELLING IN R

INTRODUCTION TO STATISTICAL MODELLING IN R

INTRODUCTION TO STATISTICAL MODELLING IN R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3A Fun example showing you someplotting and regression facilitiesHere we use a data-set from Venables and Ripley to show you some plotting andregression facilities.These include some ‘diagnostic plots’ to check whether the residuals could have comefrom an N(0, σ 2 ) distribution: the theory behind these ‘qqplots’ will be explainedlater in the course.NB: we use a ‘built-in’ dataset from the Venables and Ripley library(MASS).library(MASS)data(mammals)attach(mammals) # to ‘attach’ the column headingsspecies

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!