lab6 - STAT5044: Lab6 Inyoung Kim Outline 1 How to fit...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: STAT5044: Lab6 Inyoung Kim Outline 1 How to fit multiple regression Example A Researcher studied the effects of the charge rate and temperature on the life of a new type of power cell in a preliminary small-scale experiment. The charge rate ( x 1 ) was controlled at three levels (.6, 1.0 and 1.4 ampers) and the ambient temperature ( x 2 ) was controlled at three levels (10, 20, 30 degree). Factors pertaining to the discharge of the power cell were held at fixed levels. The life of the power cell ( Y ) was measured in terms of the number of discharge-charge cycles that a power cell underwent before it failed. The data obtained in the study are contained in Table 8.1 (Textbook p300) Call data Read data ch8<-read.table("d:/data/CH08TA01.txt",header=F) > y<-ch8[,1] > x1<-ch8[,2] > x2<-ch8[,3] > lmfit01<-lm(y x1) > lmfit02<-lm(y x2) > lmfit012<-lm(y x1+x2) > lmfit2<-lm(y x1+x2+x1sq+x2sq) Simple linear regression Simple linear fit > summary(lmfit01) Call: lm(formula = y x1) Residuals:...
View Full Document

This note was uploaded on 01/02/2012 for the course STAT 5044` taught by Professor Staff during the Fall '11 term at Virginia Tech.

Page1 / 10

lab6 - STAT5044: Lab6 Inyoung Kim Outline 1 How to fit...

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

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