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) ) )

Try the abd package in your browser

Any scripts or data that you put into this service are public.

abd documentation built on May 2, 2019, 4:46 p.m.