Learn R Programming

vcdExtra (version 0.8-5)

Vote1980: Race and Politics in the 1980 Presidential Vote

Description

Data from the 1982 General Social Survey on votes in the 1980 U.S. presidential election in relation to race and political conservatism.

Usage

data(Vote1980)

Arguments

Format

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

conservatism

a factor with levels 1 2 3 4 5 6 7, 1=most liberal, 7=most conservative

votefor

a factor with levels Carter Reagan; Carter represents Jimmy Carter or other.

Freq

a numeric vector

Details

The data contains a number of sampling zeros in the frequencies of NonWhites voting for Ronald Reagan.

References

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.

Examples

Run this code
data(Vote1980)
fourfold(xtabs(Freq ~ race + votefor + conservatism, 
  data=Vote1980), 
  mfrow=c(2,4))

Run the code above in your browser using DataLab