brain-vs-body-plotting-residuals - #Transformations and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #Transformations and Graphical Diagnostics #Also introduces the loess function #Data: brain (g) and body (kg) weights for 62 species of mammals Data from Weisbery, Applied Linear Regression, edition 1, page 144 These data are available on the class webpage wts<-read.table("YOUR PATH HERE/alr.144a",header=T) #examine first several rows of the data wts[1:5,] #________________________________________________________________________ par(mfrow=c(2,2)) plot(wts$body,wts$brain) title("Fig 1: body vs brain weight") wts.lm=lm(brain~body,wts) summary(wts.lm) #________________________________________________________________________ #NOTICE THE R^2 VALUE AND P-VALUE FOR THE F TEST! Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 91.00391 43.55260 2.09 0.0409 * body 0.96650 0.04766 20.28 <2e-16 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Residual standard error: 334.7 on 60 degrees of freedom Multiple R-Squared: 0.8727, Adjusted R-squared: 0.8705
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/16/2009 for the course STAT 540 taught by Professor Staff during the Spring '08 term at Colorado State.

Page1 / 2

brain-vs-body-plotting-residuals - #Transformations and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online