Guest User

Untitled

a guest
Jan 23rd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. x <- runif(100,0,5)
  2. y <- x*0.5 + rnorm(length(x))
  3. summary(lm(y~x))
  4.  
  5. Call:
  6. lm(formula = y ~ x)
  7.  
  8. Residuals:
  9. Min 1Q Median 3Q Max
  10. -2.4815 -0.6413 0.1720 0.6167 3.1338
  11.  
  12. Coefficients:
  13. Estimate Std. Error t value Pr(>|t|)
  14. (Intercept) -0.27168 0.20488 -1.326 0.188
  15. x 0.61228 0.07341 8.341 4.73e-13 ***
  16. ---
  17. Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  18.  
  19. Residual standard error: 1.037 on 98 degrees of freedom
  20. Multiple R-squared: 0.4152, Adjusted R-squared: 0.4092
  21. F-statistic: 69.57 on 1 and 98 DF, p-value: 4.725e-13
Add Comment
Please, Sign In to add comment