SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set.seed(123)
  2. x<- runif(100)
  3. y<- 2*x + rnorm(100,0,0.1)
  4. plot(x,y)
  5. plot(y~x)
  6. summary(lm(y~x))
  7. anova(lm(y~x))
  8. abline(lm(y~x))
  9.  
  10. lm.devo<- lm(y~x)
  11.  
  12. library(lmtest)
  13. dwtest(y~x)
  14. help("dwtest")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top