Learn R Programming

vcdExtra (version 0.5-2)

GSS: General Social Survey-- Sex and Party affiliation

Description

Data from the General Social Survey, 1991, on the relation between sex and party affiliation.

Usage

data(GSS)

Arguments

source

Agresti, A. Categorical Data Analysis John Wiley & Sons, 2002, Table 3.11, p. 106.

Examples

Run this code
data(GSS)
## maybe str(GSS) ; plot(GSS) ...
(GSStab <- xtabs(count ~ sex + party, data=GSS))

mod.glm <- glm(count ~ sex + party, family = poisson, data = GSS)

Run the code above in your browser using DataLab