exercise_6.3 {CatDataAnalysis}R Documentation

Data Set for Exercises 6.3 and 9.13

Description

Data set for Exercises 6.3 and 9.13.

Usage

data(exercise_6.3)

Format

A data frame containing 24 observations (rows) and the following columns:

Birth_control
Religious_Attendence
Premarital_Sex
Political_Views
counts

Source

https://users.stat.ufl.edu/~aa/cda/data.html

References

Agresti, A. (2013) Categorical Data Analysis, Third Edition. Hoboken, NJ: John Wiley & Sons. ISBN: 978-0-470-46363-5.

Examples

# in the source was a table rather than a data frame
# to convert to a table do
data(exercise_6.3)
exercise_6.3_as_table <- xtabs(counts ~ ., data = exercise_6.3)
## Not run: exercise_6.3_as_table

[Package CatDataAnalysis version 0.1-5 Index]