Learn R Programming

BSDA (version 1.2.0)

Referend: Opinion on referendum by view on freedom of the press

Description

Data for Exercise 8.20

Usage

Referend

Arguments

Format

A data frame with 237 observations on two variables

choice

a factor with levels A, B, and C

response

a factor with levels for, against, and undecided

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# 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