[R] Contingency tables example

David Winsemius dwinsemius at comcast.net
Wed Dec 28 19:17:44 CET 2011

On Dec 28, 2011, at 12:48 PM, Steve_Friedman at nps.gov wrote:


Why are you sending copies to r-help-bounces????? Do you think the  
moderators need an extra copy?

> This is a elementary problem concerned with tests of association.  You
> should read up on  categorical statistics,  chi square tests, and  
> general
> linear models.

Along those lines, Thompson's "R accompaniment" to Agresti's text on  
"Categorical Data Analysis" is simply wonderful:


It's not surprising that Agresti recommends it on the book's homepage:

However, I suspect the OP might be better off with Agresti's "An  
Introduction to Categorical Data Analysis (2nd ed. 2007)". So perhaps  
following the link on Agresti's page to the linked and  website could  
be a first visit for worked R code examples. But when I followed that  
link I didn't find much that seemed appropriate for a beginner in R.  
Maybe looking at Friendly's website which was in the links at Bilder's  



> Steve Friedman Ph. D.
> Ecologist  / Spatial Statistical Analyst
> I have this question:
> http://r.789695.n4.nabble.com/file/n4240145/data%5D.jpg
> This table and data represents a sample of social housing residents in
> Copenhagen and I'm asked to analyse the data with a view to seeing  
> what
> might be related to residents satisfaction levels.
> And I just don't know where to start, if anyone could help this  
> would be
> greatly appreciated
> Regards
David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list