Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. # A tibble: 26 x 2
  2. condition value
  3. <fctr> <int>
  4. 1 sim 99
  5. 2 sim 100
  6. 3 con 242
  7. 4 con 255
  8. 5 con 194
  9. 6 sim 135
  10. 7 con 504
  11. 8 sim 131
  12. 9 sim 115
  13. 10 sim 159
  14. # ... with 16 more rows
  15.  
  16. wilcox.test(value ~ condition, data = q)
  17.  
  18. Wilcoxon rank sum test with continuity correction
  19.  
  20. data: value by condition
  21. W = 165, p-value = 3.445e-05
  22. alternative hypothesis: true location shift is not equal to 0
  23.  
  24. qsim <- q$value[q$condition == "sim"]
  25. > qsim
  26. [1] 99 100 135 131 115 159 105 77 178 131 120 175 191 130
  27.  
  28. qcon <- q$value[q$condition == "con"]
  29. > qcon
  30. [1] 242 255 194 504 545 344 194 198 208 173 349 280
  31.  
  32. wilcox.test(qsim, qcon)
  33.  
  34. Wilcoxon rank sum test with continuity correction
  35.  
  36. data: qsim and qcon
  37. W = 3, p-value = 3.445e-05
  38. alternative hypothesis: true location shift is not equal to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement