Rforch30 - (Intercept) 189.7497 6.3864 29.712 9.64e-08 ***...

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

View Full Document Right Arrow Icon
R Material for Chapter 30 > data.whiptop <- read.table(file=" http://www.stat.ufl.edu/~rrandles/sta4211/Rclassnotes/data/whiptop.txt ",col .names=c("volume","soysolid","fat")) > attach(data.whiptop) > data.whiptop volume soysolid fat 1 144 -1.000 -1.000 2 192 1.000 -1.000 3 112 -1.000 1.000 4 215 1.000 1.000 5 126 -1.414 0.000 6 179 1.414 0.000 7 174 0.000 -1.414 8 176 0.000 1.414 9 196 0.000 0.000 10 191 0.000 0.000 11 177 0.000 0.000 12 195 0.000 0.000 > sqsoy <- soysolid*soysolid > sqfat <- fat*fat > prod <- soysolid*fat > model1 <- lm(volume~ soysolid +fat + sqsoy +sqfat +prod) > summary(model1) Call: lm(formula = volume ~ soysolid + fat + sqsoy + sqfat + prod) Residuals: Min 1Q Median 3Q Max -14.445 -7.760 1.169 6.945 12.437 Coefficients: Estimate Std. Error t value Pr(>|t|)
Background image of page 1

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

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

Unformatted text preview: (Intercept) 189.7497 6.3864 29.712 9.64e-08 *** soysolid 28.2470 4.5162 6.255 0.000775 *** fat -0.7716 4.5162 -0.171 0.869954 sqsoy -18.1284 5.0499 -3.590 0.011506 * sqfat -6.8750 5.0499 -1.361 0.222294 prod 13.7500 6.3864 2.153 0.074794 . ---Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1 Residual standard error: 12.77 on 6 degrees of freedom Multiple R-squared: 0.9049, Adjusted R-squared: 0.8257 F-statistic: 11.42 on 5 and 6 DF, p-value: 0.005049 &gt; m &lt;- matrix(c(2*-18.1284,13.75,13.75,2*-6.875),2,2) &gt; m [,1] [,2] [1,] -36.2568 13.75 [2,] 13.7500 -13.75 &gt; v &lt;- matrix(c(-28.247,0.7716),2,1) &gt; v [,1] [1,] -28.2470 [2,] 0.7716 &gt; solve(m)%*%v [,1] [1,] 1.220760 [2,] 1.164644...
View Full Document

This note was uploaded on 07/08/2011 for the course STA 4211 taught by Professor Randles during the Spring '08 term at University of Florida.

Page1 / 2

Rforch30 - (Intercept) 189.7497 6.3864 29.712 9.64e-08 ***...

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