powered by
Data from the 1982 General Social Survey on votes in the 1980 U.S. presidential election in relation to race and political conservatism.
data(Vote1980)
A frequency data frame representing a 2 x 7 x 2 table, with 28 observations on the following 4 variables.
race
a factor with levels NonWhite White
NonWhite
White
conservatism
a factor with levels 1 2 3 4 5 6 7, 1=most liberal, 7=most conservative
1
2
3
4
5
6
7
votefor
a factor with levels Carter Reagan; Carter represents Jimmy Carter or other.
Carter
Reagan
Freq
a numeric vector
The data contains a number of sampling zeros in the frequencies of NonWhites voting for Ronald Reagan.
Agresti, A. (1990) Categorical Data Analysis, Table 4.12 New York: Wiley-Interscience.
Friendly, M. (2000) Visualizing Categorical Data, Example 7.5 Cary, NC: SAS Institute.
data(Vote1980) fourfold(xtabs(Freq ~ race + votefor + conservatism, data=Vote1980), mfrow=c(2,4))
Run the code above in your browser using DataLab