O'Reilly logo

Understanding and Applying Basic Statistical Methods Using R by Rand R. Wilcox

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix ASOLUTIONS TO SELECTED EXERCISES

More detailed answers for all of the exercises are located at http://dornsife.usc.edu/labs/rwilcox/books/ in the file answers_wiley.pdf.

Chapter 1

3. sum(x)/length(x) 4. sum(x[x>0]) 5. id=which(x==max(x)) mean(x[-id]), which returns 1.25. 6. The values are bapp01-math-0001 and bapp01-math-0002. 7. The average is 24.1. 9. sum(x)/length(x) returns 4.8. x-4 subtracts 4 from each value. 10. sum(x-mean(x)) returns 1.776357ebapp01-math-000315, where ebapp01-math-000415 means bapp01-math-0005. The exact value is zero. 11. Two commands: id=!is.na(m[,1]) and m[id,]

Chapter 2

1. (a) 22, (b) 2, (c) 20, (d) 484, (e) 27, (f) bapp01-math-0006, (g) 2, (h) 220, (i) 12, (j) 54. 2. (a) bapp01-math-0007, (b) bapp01-math-0008, (c) . 4. (a) , , (b), . 5. , . 6. 338.1. 7. (a) 30.6, (b) 120.6, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required