Learn R Programming

SVMMaj (version 0.2.9.3)

voting: Congressional Voting Records Data Set

Description

1984 United Stated Congressional Voting Records; Classify as Republican or Democrat.

Arguments

Format

X is a data frame with 434 congress members and 16 attributes: 16 key votes identified by the Congressional Quarterly Almanac (CQA). All attributes are binary values, with 1= yes and 0= no.

X1handicapped-infants
X2water-project-cost-sharing
X3adoption-of-the-budget-resolution
X4physician-fee-freeze
X5el-salvador-aid
X6religious-groups-in-schools
X7anti-satellite-test-ban
X8aid-to-nicaraguan-contras
X9mx-missile
X10immigration
X11synfuels-corporation-cutback
X12education-spending
X13superfund-right-to-sue
X14crime
X15duty-free-exports
X16export-administration-act-south-africa

y consists factors which denotes whether the congress member is a Republican or a Democrat.

The training set voting.tr contains a randomly selected set of 300 subjects, and voting.te contains the remaining 134 subjects. voting contains all 434 objects.

Details

This data set includes votes for each of the U.S. House of Representatives Congressmen on the 16 key votes identified by the CQA. The CQA lists nine different types of votes: voted for, paired for, and announced for (these three simplified to yea), voted against, paired against, and announced against (these three simplified to nay), voted present, voted present to avoid conflict of interest, and did not vote or otherwise make a position known (these three simplified to an unknown disposition).

Examples

Run this code

attach(voting)
summary(X)
summary(y)

Run the code above in your browser using DataLab