Hw5b_solution - HOMEWORK 5-B SOLUTIONS 1) >

Info iconThis preview shows pages 1–4. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: HOMEWORK 5-B SOLUTIONS 1) > cast<-read.csv("castdata.csv",header=TRUE) > plot(cast) Based on the scatterplot matrix, GateDiam most affects the variable BatchTime. Furthermore, dots in GateDiam vs BatchTime plot has a nonlinear pattern. Therefore, we conclude that GateDiam has a nonlinear relationship with BatchTime. 2) > cast.multi<-lm(BatchTime~., data=cast) > cast$residual <-cast.multi$residual > plot(cast) > summary(cast.multi) Call: lm(formula = BatchTime ~ ., data = cast) Residuals: Min 1Q Median 3Q Max -230.044 -71.338 -7.585 58.405 391.439 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 3761.22 395.12 9.519 2.85e-15 *** GateDiam -1039.72 96.54 -10.770 < 2e-16 *** CupHeight -38.53 34.66 -1.112 0.2693 SprueHeight 20.66 24.27 0.851 0.3968 RiserDiam 58.23 25.58 2.276 0.0252 * SprueDiamBot 131.52 110.66 1.189 0.2377 SprueDiamTop 130.74 79.57 1.643 0.1039 RiserHeight 25.22 31.72 0.795 0.4287 Riser1Pos -31.85 35.64 -0.894 0.3739 Riser2Pos -20.28 28.98 -0.700 0.4859 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Residual standard error: 130.5 on 90 degrees of freedom Multiple R-Squared: 0.5877, Adjusted R-squared: 0.5465 F-statistic: 14.26 on 9 and 90 DF, p-value: 4.936e-14 > extractAIC(cast.multi) [1] 10.0000 983.7433 The AIC value for this model is 983.7433. > plot(cast.multi) 0.00 0.05 0.10 0.15 0.20-2-1 1 2 3 Leverage Standardized residuals lm(BatchTime ~ .) Cook's distance Residuals vs Leverage 77 65 28 3400 3500 3600 3700 3800 3900 4000...
View Full Document

This note was uploaded on 02/18/2009 for the course ORIE 312 taught by Professor D.ruppert,p.jacks during the Spring '08 term at Cornell University (Engineering School).

Page1 / 6

Hw5b_solution - HOMEWORK 5-B SOLUTIONS 1) >

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

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