Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. A B
  2. -1.15 -1.16
  3. -1.13 -0.94
  4. -0.16 -1.18
  5. -0.37 -1.20
  6. -1.09 -1.20
  7. -1.20 -1.20
  8. -0.94 -1.20
  9. -0.84 -1.16
  10. -1.18 -1.17
  11. -1.20 -1.11
  12. -0.78 -0.68
  13. -0.83 -0.73
  14. -1.05 -1.20
  15. -0.71 -1.20
  16. 0.07 0.12
  17. -1.20 -0.98
  18. -1.20 -1.20
  19. -1.02 -1.17
  20. -0.28 -0.84
  21. 1.33 1.47
  22. -1.19 -1.20
  23. -1.20 -1.17
  24. -0.40 -1.20
  25. 0.66 -0.21
  26. -0.63 0.21
  27. -0.88 -1.16
  28. -0.46 -1.20
  29. -0.76 -1.20
  30. -0.38 -1.20
  31. -0.67 -0.97
  32. -0.90 -1.20
  33. -0.90 -1.20
  34. -1.20 -1.15
  35. -1.01 -0.79
  36.  
  37. t.test(dat$A, dat$B, alternative = c("two.sided"), mu = 0, paired = TRUE)
  38.  
  39. Paired t-test
  40. data: dat$A and dat$B
  41. t = 2.894, df = 33, p-value = 0.006692
  42. alternative hypothesis: true difference in means is not equal to 0
  43. 95 percent confidence interval:
  44. 0.05870022 0.33659390
  45. sample estimates:
  46. mean of the differences
  47. 0.1976471
  48.  
  49. mod1 <- lm(A ~ B, data=dat)
  50.  
  51. Coefficients:
  52. Estimate Std. Error t value Pr(>|t|)
  53. (Intercept) -0.03345 0.12739 -0.263 0.795
  54. B 0.75111 0.11801 6.365 3.79e-07 ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement