HW2 Q6 - 0.07075395 18.9348403 6.016802e-19 anova(out)...

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

View Full Document Right Arrow Icon
Q6| news=read.delim("P050.txt",header=T) daily=news[,2] daily 391.952 516.981 355.628 238.555 537.780 733.775 198.832 252.624 206.204 231.177 449.755 288.571 185.736 1164.388 444.581 412.871 272.280 781.796 1209.225 825.512 223.748 354.843 515.523 220.465 337.672 197.120 133.239 374.009 273.844 570.364 391.286 201.860 321.626 838.902 mean(daily ) 430.9625 sd(daily) 269.2115 Sunday=news[,3] Sunday 488.506 798.298 235.084 299.451 559.093 1133.249 348.744 417.779 344.522 323.084 620.752 423.305 202.614 1531.527 553.479 685.975 324.241 983.240 1762.015 960.308 284.611 407.760 982.663 557.000 440.923 268.060 262.048 432.502 338.355 704.322 585.681 267.781 408.343 1165.567 mean(Sunday) 591.2024 sd(Sunday) 376.4181 (a) plot(daily,Sunday) (b) out=lm(Sunday~daily) summary(out)$coef Estimate Std. Error t value Pr(>|t|) (Intercept) 13.835630 35.80400579 0.3864269 7.017382e-01 daily 1.339715
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
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0.07075395 18.9348403 6.016802e-19 anova(out) Analysis of Variance Table Response: Sunday Df Sum Sq Mean Sq F value Pr(>F) daily 1 4292653 4292653 358.53 < 2.2e-16 *** Residuals 32 383136 11973 ---Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1 abline(out) (c) confint(out) 2.5 % 97.5 % (Intercept) -59.094743 86.766003 daily 1.195594 1.483836 (d) resid(out) -50.4335086 91.8552949 -255.1917098 -33.9802839 -175.2144323 136.3641738 68.5302054 65.4992691 54.4318282 -0.4628684 4.3729592 22.8665428 -60.0548901 -42.2564172 -55.9683566 119.0099984 -54.3721641 -77.9792686 128.1627922 -159.4782390 -28.9831275 -81.4640337 278.1735991 247.8041560 25.2967916 -9.8602029 69.7101155 -82.3990067 -42.3534780 -73.6386980 47.6337414 -16.4894509 -36.3797286 27.8419804 sum(resid(out)) 3.907985e-14 plot(fitted(out),resid(out))...
View Full Document

Page1 / 3

HW2 Q6 - 0.07075395 18.9348403 6.016802e-19 anova(out)...

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

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