U.S. 2000 Election Data

Description

Data from a post-election survey following the year 2000 U.S. presidential elections.

Usage

data("USvote")

Format

A data frame with 10645 observations on the following 6 variables.

vote3
candidate voted for Gore or Bush
gender
gender, a factor with levels male and female
ager
age group, an ordered factor with levels 18-24 < 25-34 < 35-44 < 45-54 < 55-64 < 65+
empstat
status of employment, a factor with levels yes, no or retired
educr
status of education, an ordered factor with levels <HS < HS < >HS < College < Post Coll
marstat
status of living situation, a factor with levels married, widowed, divorced or never married

Details

The dataset is based on data from a post-election survey on persons who voted for either Bush or Gore in the 2000 U.S. election. The specific variables are related to the publication of Magidson and Vermunt (2005).

Further information (and datasets) about the 2000 U.S. election and other National Election Studies is available on the American National Election Studies Web site (https://electionstudies.org/).

Source

Latent GOLD 4.5: Sample Data Sets

https://web.archive.org/web/20090113231021/http://www.statisticalinnovations.com/products/latentgold_datasets.html#USselection2000reg

References

Jay Magidson and Jeroen K. Vermunt (2005). An Extension of the CHAID Tree-Based Segmentation Algorithm to Multiple Dependent Variables. In: C. Weihs & W. Gaul (Editors), Classification: The Ubiquitous Challenge, pages 176–183. Heidelberg: Springer-Verlag. https://jeroenvermunt.nl/gfkl2004b.pdf

Examples

library("chaid")

library("chaid")
data("USvote", package = "chaid")

### fit tree to subsample
set.seed(290875)
USvoteS <- USvote[sample(1:nrow(USvote), 2000),]
chaidUS <- chaid(vote3 ~ gender + ager + empstat + educr + marstat, data = USvoteS)

print(chaidUS)

Model formula:
vote3 ~ gender + ager + empstat + educr + marstat

Fitted party:
[1] root
|   [2] marstat in married
|   |   [3] educr <HS, HS
|   |   |   [4] ager in 18-24, 25-34
|   |   |   |   [5] empstat in yes, retired: Bush (n = 27, err = 18.5%)
|   |   |   |   [6] empstat in no: Gore (n = 6, err = 16.7%)
|   |   |   [7] ager in 35-44: Gore (n = 56, err = 35.7%)
|   |   |   [8] ager in 45-54
|   |   |   |   [9] empstat in yes, retired: Gore (n = 50, err = 46.0%)
|   |   |   |   [10] empstat in no: Bush (n = 23, err = 21.7%)
|   |   |   [11] ager in 55-64, 65+
|   |   |   |   [12] empstat in yes, retired: Gore (n = 119, err = 47.1%)
|   |   |   |   [13] empstat in no: Gore (n = 36, err = 11.1%)
|   |   [14] educr >HS, College, Post Coll
|   |   |   [15] empstat in yes, retired
|   |   |   |   [16] gender in male
|   |   |   |   |   [17] ager in 18-24, 25-34, 35-44: Bush (n = 164, err = 31.7%)
|   |   |   |   |   [18] ager in 45-54, 55-64: Bush (n = 169, err = 48.5%)
|   |   |   |   |   [19] ager in 65+
|   |   |   |   |   |   [20] educr <HS, HS, >HS, College: Bush (n = 50, err = 16.0%)
|   |   |   |   |   |   [21] educr in Post Coll: Gore (n = 9, err = 22.2%)
|   |   |   |   [22] gender in female: Bush (n = 311, err = 49.2%)
|   |   |   [23] empstat in no
|   |   |   |   [24] gender in male: Gore (n = 13, err = 30.8%)
|   |   |   |   [25] gender in female
|   |   |   |   |   [26] ager in 18-24, 25-34, 35-44, 45-54: Bush (n = 71, err = 19.7%)
|   |   |   |   |   [27] ager in 55-64: Gore (n = 27, err = 48.1%)
|   |   |   |   |   [28] ager in 65+: Bush (n = 12, err = 8.3%)
|   [29] marstat in widowed, divorced, never married
|   |   [30] ager in 18-24: Gore (n = 90, err = 22.2%)
|   |   [31] ager in 25-34, 35-44
|   |   |   [32] empstat in yes, retired
|   |   |   |   [33] marstat in married, widowed, never married: Gore (n = 153, err = 40.5%)
|   |   |   |   [34] marstat in divorced: Bush (n = 96, err = 43.8%)
|   |   |   [35] empstat in no: Gore (n = 34, err = 14.7%)
|   |   [36] ager in 45-54: Gore (n = 106, err = 25.5%)
|   |   [37] ager in 55-64, 65+: Gore (n = 314, err = 38.5%)

Number of inner nodes:    15
Number of terminal nodes: 22
plot(chaidUS)