{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# lab6 - STAT5044 Lab6 Inyoung Kim Outline 1 How to t...

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

STAT5044: Lab6 Inyoung Kim

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

View Full Document
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)

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

View Full Document
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: Min 1Q Median 3Q Max -86.000 -54.083 -7.167 55.667 107.833 Coefficients: Estimate Std. Error t value Pr(>|t|)

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 10

lab6 - STAT5044 Lab6 Inyoung Kim Outline 1 How to t...

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

View Full Document
Ask a homework question - tutors are online