15. Count Data in Tables

  1. Michael J. Crawley

Published Online: 6 NOV 2012

DOI: 10.1002/9781118448908.ch15

The R Book, Second Edition

The R Book, Second Edition

How to Cite

Crawley, M. J. (2012) Count Data in Tables, in The R Book, Second Edition, John Wiley & Sons, Ltd, Chichester, UK. doi: 10.1002/9781118448908.ch15

Author Information

  1. Imperial College London at Silwood Park, UK

Publication History

  1. Published Online: 6 NOV 2012
  2. Published Print: 7 DEC 2012

ISBN Information

Print ISBN: 9780470973929

Online ISBN: 9781118448908



  • tables and count data;
  • two-class table of counts;
  • count data, and sample size;
  • four-class table of counts;
  • two-by-two contingency tables;
  • log-linear for simple contingency tables;
  • quasi-Poisson, and negative binomial model comparison;
  • contingency table of intermediate complexity;
  • Schoener's lizards, complex contingency table;
  • count data graphics, spine plots and spinograms


This chapter contains sections titled:

  • A two-class table of counts

  • Sample size for count data

  • A four-class table of counts

  • Two-by-two contingency tables

  • Using log-linear models for simple contingency tables

  • The danger of contingency tables

  • Quasi-Poisson and negative binomial models compared

  • A contingency table of intermediate complexity

  • Schoener's lizards: A complex contingency table

  • Plot methods for contingency tables

  • Graphics for count data: Spine plots and spinograms