# 09_13 - anova(fite,fit f x4 = x1 2*x2 fitf = lm(y ~ x4...

This preview shows page 1. Sign up to view the full content.

Sheet1 Page 1 x1 = c( 0,11,11, 7, 4,10, 5, 8) x2 = c( 1, 5, 4, 3, 1, 4, 4, 2) y = c(11,15,13,14, 0,19,16, 8) # a, b, c, d fit = lm(y ~ x1 + x2) summary(fit) # b anova(lm(y~1),fit) # c fitc = lm(y ~ x2) anova(fitc,fit) # d fitd = lm(y ~ x1) anova(fitc,fit) # e x3 = x2 + 1 x3 fite = lm(y ~ x1 + x3 + 0)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: anova(fite,fit) # f x4 = x1 - 2*x2 fitf = lm(y ~ x4) anova(fitf,fit) # g, h predict.lm(fit,data.frame(x1=2,x2=3),interval=c("prediction"),level=0.90) predict.lm(fit,data.frame(x1=8,x2=5),interval=c("prediction"),level=0.90)...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern