Version: | 0.1-5 |
Date: | 2022-06-27 |
Title: | Datasets for Categorical Data Analysis by Agresti |
Author: | Alan Agesti <aa@stat.ufl.edu> |
Maintainer: | Charles J. Geyer <charlie@stat.umn.edu> |
Depends: | R (≥ 3.0.2) |
Description: | Datasets used in the book "Categorical Data Analysis" by Agresti (2012, ISBN:978-0-470-46363-5) but not printed in the book. Datasets and help pages were automatically produced from the source https://users.stat.ufl.edu/~aa/cda/data.html by the R script foo.R, which can be found in the GitHub repository. |
License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
URL: | https://github.com/cjgeyer/CatDataAnalysis |
NeedsCompilation: | no |
Packaged: | 2022-06-27 20:24:51 UTC; geyer |
Repository: | CRAN |
Date/Publication: | 2022-06-27 22:20:17 UTC |
Clinical Trials Data Set for Exercise 13.17
Description
Clinical trials data set for Exercise 13.17.
Usage
data(exercise_13.17)
Format
A data frame containing 16 observations (rows) and the following columns:
- Center
- Treatment
- Much_Better
- Better
- Unchanged.Worse
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.
Data for Exercise 14.15 on Buchanan Vote in 2000
Description
Data for Exercise 14.15 on Buchanan vote in 2000.
Usage
data(exercise_14.15)
Format
A data frame containing 67 observations (rows) and the following columns:
- county
- perot_vote
- total_vote_1996
- buchanan_vote
- total_vote_2000
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.
Ray Allen Data Set for Exercise 4.13
Description
Ray Allen data set for Exercise 4.13.
Usage
data(exercise_4.13)
Format
A data frame containing 24 observations (rows) and the following columns:
- game
- made
- attempts
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.
Data on Italian Credit Cards, for Exercise 5.22
Description
Data on Italian credit cards, for Exercise 5.22.
Usage
data(exercise_5.22)
Format
A data frame containing 31 observations (rows) and the following columns:
- income
- n
- y
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.
Rajon Rondo Assists Data Set for Exercise 5.3
Description
Rajon Rondo assists data set for Exercise 5.3.
Usage
data(exercise_5.3)
Format
A data frame containing 77 observations (rows) and the following columns:
- assists
- result
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.
Data on Incontinence Study, for Exercise 6.20
Description
Data on incontinence study, for Exercise 6.20.
Usage
data(exercise_6.20)
Format
A data frame containing 21 observations (rows) and the following columns:
- y
- x1
- x2
- x3
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.
Data Set for Exercise 6.28
Description
Data set for Exercise 6.28.
Usage
data(exercise_6.28)
Format
A data frame containing 48 observations (rows) and the following columns:
- Occupational_aspirations
- Socioeconomic_status
- IQ
- Residence
- Gender
- 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.28)
exercise_6.28_as_table <- xtabs(counts ~ ., data = exercise_6.28)
## Not run: exercise_6.28_as_table
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
Data Set for Exercise 6.7
Description
Data set for Exercise 6.7.
Usage
data(exercise_6.7)
Format
A data frame containing 168 observations (rows) and the following columns:
- Gender
- Age
- Race
- Satisfaction
- Region
- 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.7)
exercise_6.7_as_table <- xtabs(counts ~ ., data = exercise_6.7)
## Not run: exercise_6.7_as_table
Data for Exercise 8.18 on Dumping Severity
Description
Data for Exercise 8.18 on dumping severity.
Usage
data(exercise_8.18)
Format
A data frame containing 48 observations (rows) and the following columns:
- Dumping_severity
- Hospital
- Operation
- 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_8.18)
exercise_8.18_as_table <- xtabs(counts ~ ., data = exercise_8.18)
## Not run: exercise_8.18_as_table
Data for Exercise 8.28 on Satisfaction with Housing
Description
Data for Exercise 8.28 on satisfaction with housing.
Usage
data(exercise_8.28)
Format
A data frame containing 72 observations (rows) and the following columns:
- Satisfaction
- Contact
- Influence
- Housing
- 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_8.28)
exercise_8.28_as_table <- xtabs(counts ~ ., data = exercise_8.28)
## Not run: exercise_8.28_as_table
Government Spending Data Set for Exercise 9.5
Description
Government spending data set for Exercise 9.5.
Usage
data(exercise_9.5)
Format
A data frame containing 81 observations (rows) and the following columns:
- e
- h
- c
- l
- count
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.
Data for Example in Section 13.4.4 on Cluster Sampling
Description
Data for example in Section 13.4.4 on cluster sampling.
Usage
data(section_13.4.4)
Format
A data frame containing 96 observations (rows) and the following columns:
- nbhd
- satis_1
- satis_2
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.
Alcohol, Cigarette, and Marijuana Use, by Gender and Race, as in Table 10.1
Description
Alcohol, cigarette, and marijuana use, by gender and race, as in Table 10.1.
Usage
data(table_10.1)
Format
A data frame containing 32 observations (rows) and the following columns:
- a
- c
- m
- r
- g
- count
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.
Opinions About Birth Control and Premarital Sex Data Set of Table 10.3
Description
Opinions about birth control and premarital sex data set of Table 10.3.
Usage
data(table_10.3)
Format
A data frame containing 16 observations (rows) and the following columns:
- premar
- birth
- count
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.
Migration Data Set of Table 11.5
Description
Migration data set of Table 11.5.
Usage
data(table_11.5)
Format
A data frame containing 16 observations (rows) and the following columns:
- row
- column
- count
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.
Depression Data Set of Table 12.1 in Case Form
Description
Depression data set of Table 12.1 in case form.
Usage
data(table_12.1)
Format
A data frame containing 1020 observations (rows) and the following columns:
- case
- severity
- treat
- time
- outcome
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.
Insomnia Data Set of Table 12.3
Description
Insomnia data set of Table 12.3.
Usage
data(table_12.3)
Format
A data frame containing 478 observations (rows) and the following columns:
- case
- treat
- occasion
- outcome
- count
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.
Presidential Election Poll Data Set of Table 13.2
Description
Presidential election poll data set of Table 13.2.
Usage
data(table_13.2)
Format
A data frame containing 51 observations (rows) and the following columns:
- state
- pi
- n
- x
- proportion
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.
Attitudes About Abortion Data Set of Table 13.3
Description
Attitudes about abortion data set of Table 13.3.
Usage
data(table_13.3)
Format
A data frame containing 16 observations (rows) and the following columns:
- gender
- poor
- single
- any
- count
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.
Attitudes Toward Leading Crowd Data Set of Table 13.8
Description
Attitudes toward leading crowd data set of Table 13.8.
Usage
data(table_13.8)
Format
A data frame containing 16 observations (rows) and the following columns:
- mem1
- att1
- mem2
- att2
- count
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.
Election Data Set of Table 15.5 (1 = Dem, 0 = Rep)
Description
Election data set of Table 15.5 (1 = Dem, 0 = Rep).
Usage
data(table_15.5)
Format
A data frame containing 51 observations (rows) and the following columns:
- State
- e1
- e2
- e3
- e4
- e5
- e6
- e7
- e8
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.
Grounds for Divorce Data Set of Table 15.6 for Exercise 15.10
Description
Grounds for divorce data set of Table 15.6 for Exercise 15.10.
Usage
data(table_15.6)
Format
A data frame containing 50 observations (rows) and the following columns:
- state
- incompat
- cruelty
- desertn
- non_supp
- alcohol
- felony
- impotenc
- insanity
- separate
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.
Horseshoe Crab Data Set of Table 4.3
Description
Horseshoe crab data set of Table 4.3. (Here y is whether a female crab has a satellite (1=yes, 0=no) and weight is in grams, rather than kg as in the text. Also, color has values 1-5 with 1=light; there were no crabs of color 1, so in the text, color was re-coded as color - 1 to give values 1, 2, 3, 4.)
Usage
data(table_4.3)
Format
A data frame containing 173 observations (rows) and the following columns:
- color
- spine
- width
- satell
- weight
- y
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.
Teratology Study Data Set of Table 4.7
Description
Teratology study data set of Table 4.7.
Usage
data(table_4.7)
Format
A data frame containing 58 observations (rows) and the following columns:
- litter
- group
- n
- y
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.
Data on Surgery and Sore Throats in Table 6.15, for Exercise 6.8
Description
Data on surgery and sore throats in Table 6.15, for Exercise 6.8.
Usage
data(table_6.15)
Format
A data frame containing 35 observations (rows) and the following columns:
- D
- T
- Y
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.
Clinical Trials Data Set of Table 6.9
Description
Clinical trials data set of Table 6.9.
Usage
data(table_6.9)
Format
A data frame containing 32 observations (rows) and the following columns:
- center
- treat
- response
- count
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.
Full Data Set for Table 7.2 on Endometrial Cancer Grade
Description
Full data set for Table 7.2 on endometrial cancer grade.
Usage
data(table_7.2)
Format
A data frame containing 79 observations (rows) and the following columns:
- nv
- pi
- eh
- hg
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.
Alligator Food Choice Data Set of Table 8.1
Description
Alligator food choice data set of Table 8.1.
Usage
data(table_8.1)
Format
A data frame containing 80 observations (rows) and the following columns:
- lake
- gender
- size
- food
- count
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.
Full Data Set for Table 8.5 on Happiness, Traumatic Events, and Race
Description
Full data set for Table 8.5 on happiness, traumatic events, and race.
Usage
data(table_8.5)
Format
A data frame containing 97 observations (rows) and the following columns:
- race
- trauma
- happy
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.
High School Student Survey Data Set of Table 9.3
Description
High school student survey data set of Table 9.3.
Usage
data(table_9.3)
Format
A data frame containing 8 observations (rows) and the following columns:
- a
- c
- m
- count
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.