INTRODUCTION TO STATISTICAL MODELLING IN R
INTRODUCTION TO STATISTICAL MODELLING IN R
INTRODUCTION TO STATISTICAL MODELLING IN R
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