Learn R Programming

BSDA (version 1.01)

Ferraro2: Choice of vice presidental candidate in 1984 by gender

Description

Data for Exercise 8.23

Usage

Ferraro2

Arguments

Format

A data frame with 2 observations on the following 4 variables.

gender

a factor with levels Men Women

Bush

a numeric vector

Ferraro

a numeric vector

undecide

a numeric vector

Examples

Run this code
# NOT RUN {
str(Ferraro2)
attach(Ferraro2)
Ferraro2
chisq.test(Ferraro2[,2:4])
detach(Ferraro2)
# }

Run the code above in your browser using DataLab