Vote choice and issue distances in the 1987 British general election (Glasgow 2001)
Source:R/data.R
bes1987.RdRespondents of the 1987 British General Election Study who voted Conservative, Labour or Alliance, with their distance to each party on seven issues and their social and economic characteristics (Glasgow 2001, following Alvarez, Nagler and Bowler 2000). One row per respondent and party (the long layout); the classic example of the IIA debate in political science and of the mixed logit as its remedy.
Usage
data(bes1987)Format
A data frame with 6,393 rows (2,131 respondents times 3 parties) and 26 variables:
- id
Respondent identifier.
- party
Factor:
conservative,labour,alliance.- chosen
1 for the party voted for.
- defense, phillips, taxation, nationalization, redistribution, crime, welfare
Distance between the respondent and the party on the issue: the absolute difference between the respondent's self-placement and the party's mean placement by all respondents, on 11-point scales (defense: nuclear weapons; phillips: inflation versus unemployment; crime: civil rights versus fighting crime).
- south, midlands, north, wales, scotland
Region of residence.
- union
1 if a member of a trade union or staff association.
- public
1 if employed in the public sector.
- working_class
1 if in a working-class (manual, personal service or agricultural) occupation.
- female
1 if female.
- age
Age in years divided by 10.
- homeowner
1 if the household owns its residence.
- income
Family income, 1 to 12.
- education
Age at the end of continuous full-time education, divided by 10.
- inflation, taxes, unemployment
Perceived change since the 1983 election in prices, taxes and unemployment, 1 (increased a lot) to 5 (fallen a lot).
Source
Glasgow, G. (2001). Mixed logit models for multiparty elections. Political Analysis, 9, 116-136. Data: Heath, A., Jowell, R. and Curtice, J.K. British General Election Study, 1987: Cross-Section Survey. UK Data Service, SN 2568. doi:10.5255/UKDA-SN-2568-1
Provenance and terms
From the replication archive of Glasgow (2001) at the Harvard Dataverse
(doi:10.7910/DVN/PCPVWB
, version 1.0, released under CC0 1.0): the file
glasgow.data.asc of glasgow.web.zip (md5
ab0c27430d5b281eed1859ebb88b64bc), its 39 columns read in the order of the
archive's GAUSS program. The survey is the British General Election Study,
1987: Cross-Section Survey (Heath, Jowell and Curtice; UK Data Service SN
2568, doi:10.5255/UKDA-SN-2568-1
), which the UK Data Service distributes
under the Creative Commons Attribution 4.0 licence; use of these data should
cite it. The rebuilding script is data-raw/make_examples.R of the
development repository. The multinomial logit of the paper's Appendix A,
Table C (log-likelihood -1477.56) reproduces.
Examples
data(bes1987)
f <- chosen ~ defense + phillips + taxation + nationalization + redistribution + crime + welfare |
south + midlands + north + wales + scotland + union + public + working_class + female + age +
homeowner + income + education + inflation + taxes + unemployment
m <- mnl(f, data = bes1987, id = "id", alt = "party", ref = "alliance")
m$loglik # Appendix A, Table C: -1477.56
#> [1] -1477.557
# \donttest{
iia_tests(m, seed = 1)
#> Tests of IIA / misspecification of the multinomial logit
#> test alternative statistic df
#> Hausman-McFadden (difference) conservative 59.860 24
#> Hausman-McFadden (difference) labour -42.232 24
#> Hausman-McFadden (difference) alliance 108.317 24
#> Hausman-McFadden (joint) conservative 25.395 24
#> Hausman-McFadden (joint) labour 30.454 24
#> Hausman-McFadden (joint) alliance 34.068 24
#> Small-Hsiao (median over splits) conservative 21.212 24
#> Small-Hsiao (median over splits) labour 25.852 24
#> Small-Hsiao (median over splits) alliance 29.999 24
#> Fok-Paap CL Hausman (Q1, joint) 67.563 41
#> Fok-Paap GMM overidentification (Q2, two-step) 44.544 31
#> p.value psd share_separated
#> 6.68e-05 TRUE NA
#> 1.00000 FALSE NA
#> 1.11e-12 TRUE NA
#> 0.38455 TRUE NA
#> 0.17015 TRUE NA
#> 0.08347 TRUE NA
#> 0.62620 NA 0
#> 0.36072 NA 0
#> 0.18479 NA 0
#> 0.00559 TRUE NA
#> 0.05470 NA NA
#> psd = FALSE: the covariance difference was not positive semi-definite for that row. A negative statistic is no evidence against the model (p-value 1); a positive one from a variance-difference form is unreliable (see the test's help).
#> Small-Hsiao (median over splits): descriptive, not a test at its level (it rejected in none of 300 samples in the package's size study); for the test, run one split with its seed fixed in advance (small_hsiao(m, seed = ), or iia_tests(m, splits = 1, seed = )).
# }