Skip to content

Add dataset 00077: American National Election Studies (ANES) - #39

Open
endolith wants to merge 1 commit into
PrefLib:mainfrom
endolith:add-anes
Open

endolith wants to merge 1 commit into
PrefLib:mainfrom
endolith:add-anes

Conversation

@endolith

@endolith endolith commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Restores the ANES dataset that was missed in the migration (#32). Per @nmattei and @Simon-Rey, contributing it back.

What's added

datasets/00077 - anes/ — 19 series, ANES-1970 … ANES-2008 (2006 is not included, as on the old site):

  • 00077-000000NN.toi — original: partial orders over the candidates (respondents could skip thermometer ratings)
  • 00077-000000NN.toc — imbued: the same orders with the unranked candidates tied at the bottom

Each file carries the standard metadata header (title, data type, modification type, relates-to, alternative names, and the computed NUMBER ALTERNATIVES / NUMBER VOTERS / NUMBER UNIQUE ORDERS).

Provenance

Recovered from the Wayback Machine: the old dataset page and all 95 data files are archived there. The raw files were never in git, which is why they didn't survive the move.

The 2013-era files use the pre-header layout (n_alternatives, alternative lines, a voters,voters,unique_orders summary line, then multiplicity,order vote lines), so they were converted to the current format: header block added, mult,order lines rewritten as mult: order, trailing whitespace in alternative names stripped. Alternative names are the anonymous Candidate 1..n from the original files; voter multiplicities are untouched.

Verification

  • all 38 files parse with preflibtools 2.0.33, and the parsed alternatives / voters / unique orders match the header counts exactly
  • per-series ranges match the dataset description (1,208–2,648 voters, 3–12 candidates)
  • scripts/sanitychecks.py → check_dataset("00077 - anes", escalate_warnings=True) passes locally

One deliberate omission

The old site also offered induced .pwg, .tog and .wmg files (57 files). They are not included: they are derivable from the .toc files, and preflibtools ≥2 no longer parses any of those three extensions. Happy to add them as archives if you'd prefer to keep them.

info.txt metadata (description, required citations, selected studies) is carried over verbatim from the old site's copy, plus a short provenance paragraph pointing at #32.

Closes #32

— Open Interpreter

Restores the ANES thermometer-poll dataset (ED-00013 on the old website),
which was omitted from the data migration -- see PrefLib#32.

- 19 series, ANES-1970 ... ANES-2008 (2006 is not included)
- original .toi (partial orders over candidates) + imbued .toc (unranked
  candidates tied at the bottom), converted from the archived 2013-era
  files to the current format with the usual metadata headers
- the legacy induced .pwg/.tog/.wmg files are not included: they are
  derivable from the .toc files and are no longer parsed by preflibtools
- "Candidate 1..n" alternative names and all voter multiplicities are as
  published on the old site

Source: https://web.archive.org/web/20201130235728/https://www.preflib.org/data/election/anes/

Closes PrefLib#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing dataset: ED-00013 American National Election Studies (ANES)

1 participant