powered by
Data for Exercise 8.20
Referend
A data frame with 237 observations on two variables
a factor with levels A, B, and C
A
B
C
a factor with levels for, against, and undecided
for
against
undecided
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { T1 <- xtabs(~choice + response, data = Referend) T1 chisq.test(T1) chisq.test(T1)$expected # }
Run the code above in your browser using DataLab