Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # get the data into the software
  2. Input =(
  3. "group no_malonate malonate
  4. a 0.026 0.026
  5. b 0.052 0.047
  6. c 0.045 0.005
  7. d 0.09 0.088
  8. e 0.012 0.02
  9. f 0.084 0.087
  10. g 0.006 0.007
  11. h 0.078 0.074
  12. i 0.016 0.015
  13. j 0.005 0.001
  14. k 0.12 0.08
  15. l 0.055 0.035
  16. m 0.055 0.035
  17. n 0.02 0.018
  18. ")
  19.  
  20. # turn the text into an R table
  21. Data = read.table(textConnection(Input),header=TRUE)
  22.  
  23. # do the paired t-test
  24. t.test(Data$no_malonate, Data$malonate,
  25. paired=TRUE,
  26. conf.level=0.95)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement