Guest User

Untitled

a guest
Jul 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. shapiro.test(A$income)
  2. shapiro.test(A$urban)
  3.  
  4. A1<-lm(urban~income,data=Anscombe)
  5. summary(A1)
  6. scatterplot(urban~income,data=Anscombe,smooth=F)
  7.  
  8. Call:
  9. lm(formula = urban ~ income, data = Anscombe)
  10.  
  11. Residuals:
  12. Min 1Q Median 3Q Max
  13. -351.06 -51.07 -4.37 81.75 220.13
  14.  
  15. Coefficients:
  16. Estimate Std. Error t value Pr(>|t|)
  17. (Intercept) 67.04877 91.99292 0.729 0.47
  18. income 0.18524 0.02811 6.590 2.87e-08 ***
  19. ---
  20. Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  21.  
  22. Residual standard error: 111.3 on 49 degrees of freedom
  23. Multiple R-squared: 0.4699, Adjusted R-squared: 0.459
  24. F-statistic: 43.43 on 1 and 49 DF, p-value: 2.866e-08
Add Comment
Please, Sign In to add comment