R for SAS and SPSS Users pp 403-440 | Cite as

# Statistics

This Chapter demonstrates some basic statistical methodsanalysis. More importantly, it shows how even in the realm of fairly standard analyses, R differs sharply from the approach used by SAS and SPSS. Since this book is aimed at people who already know SAS or SPSS, I assume you are already familiar with most of these methods. I will briefly list each test's goal and assumptions, and how to get R to perform them. For more statistical coverage, see Dalgaard's *Introductory Statistics with R* [36], or Venable and Ripley's much more advanced *Modern Applied Statistics in S* [18].

The examples in this chapter will use the mydata100 dataset described in Chap. 20.

Many of examples in this chapter assume that we have attached this data frame with the command attach(mydata100). This enables us to use short variable names like “gender” rather than a longer form like “mydata[“gender”]”. To get things to fit well on these pages, I have set:options (linesize=64)

You can use that if you want your...