An R package containing most of the methods presented in Statistical Analysis of Contingency Tables can be found on GitHub

The methods are also available as Matlab files:


Chapter 2 The 1x2 Table and the Binomial Distribution    
Chapter 3 The 1xc Table and the Multinomial Distribution
Chapter 4 The 2x2 Table                                                                  
Chapter 5 The Ordered rx2 Table                                                 
Chapter 6 The Ordered 2xc Table                                                 
Chapter 7 The rxc Table                                                                    
Chapter 8 The Paired 2x2 Table                                                     
Chapter 9 The Paired cxc Table                                                      
Chapter 10 Stratified 2x2 Tables and Meta-Analysis           

Matlab files by Morten W. Fagerland
R files by Ole Christian Lingjærde, maintained by Waldir Leoncio Netto