demo/sec9.3.R

## Table 9.3-1
xtabs(~ infection.status + eaten, Trematodes)

## Chi-squared Contingency Test
chisq.test( xtabs(~ infection.status + eaten, Trematodes) )
summary(chisq.test( xtabs(~ infection.status + eaten, Trematodes) ) )
kmiddleton/abd documentation built on Feb. 25, 2018, 11:41 a.m.