An Introdu ction to Categorical Data Analy sis Using RBrett PresnellMarch 28, 2000AbstractThis docu ment attempts to reprodu ce the ex amples and some of the ex ercises in An Introduction to Categor-ical Data Analysis [1] u sing the R statistical programming env ironment.Chapter 0Abou t This Docu mentThis document attempts to reproduce the examples and some of the exercises in An Introduction to Categori-cal Data Analysis [1] using the R statistical programming environment. Numbering and titles of chapters willfollow that of Agresti’s text, so if a particular example/analysis is of interest, it should not be hard to find,assuming that it is here.Since R is particularly versatile, there are often a number of different ways to accomplish a task, andnaturally this document can only demonstrate a limited number of possibilities. The reader is urged to exploreother approaches on their own. In this regard it can be very helpful to read the online documentation for thevarious functions of R, as well as other tutorials. The help files for many of the R functions used here arealso included in the appendix for easy reference, but the online help system is definitely the preferred way toaccess this information.It is also worth noting that as of this writing (early 2000), R is still very much under development.Thus new functionality is likely to become available that might be more convenient to use than some of theapproaches taken here. Of course any user can also write their own R functions to automate any task, sothe possibilities are endless. Do not be intimidated though, for this is really the fun of using R and its bestfeature: you can teach it to do whatever is neede, instead of being constra...