# R-program for Supplementary Exercise 9.20 of IPS7e chd <- read.csv("r:/Chapter 9/ex09_020.csv") chd.xtab <- xtabs(Survivors ~ Status + Ownership, data=chd); chd.xtab chd.chi2 <- chisq.test(chd.xtab); chd.chi2 chd.ft <- fisher.test(chd.xtab); chd.ft