Learn R Programming

BSDA (version 1.01)

Politic: Political party and gender in a voting district

Description

Data for Example 8.3

Usage

Politic

Arguments

Format

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

Party

a numeric vector

Gender

a numeric vector

Examples

Run this code
# NOT RUN {
str(Politic)
attach(Politic)
table(Party,Gender)
chisq.test(table(Party,Gender))
detach(Politic)
# }

Run the code above in your browser using DataLab