Back to datasets

VOTE1.DTA

Campaign spending and vote share

Election data for connecting a fitted line to campaign spending and candidate vote share.

Open DTA data

Structure

cross-sectional

File type

DTA

Module

Module 2

Visibility

course-use

Preview table

Preview rows are shown when safely installed in the app. External or licensed files may need to be opened from the source link.

No local preview table is installed for this dataset. Use the download/source link, then load it with the Python example below.

Python loading code

import pandas as pd

data = pd.read_stata("VOTE1.DTA")
print(data[["voteA", "shareA"]].head())

Check the variable dictionary and source documentation before dropping or recoding missing values.

Dataset AI assistant

Get help with variables, graphs, regression questions, limitations, and Python loading code.

Variables dictionary

voteAnumericpercent

Candidate A's vote share.

Missing values: Review source documentation before recoding missing values.

shareAnumericpercent

Candidate A's share of campaign spending.

Missing values: Review source documentation before recoding missing values.

expendAnumericdollars

Campaign spending by candidate A.

Missing values: Review source documentation before recoding missing values.

expendBnumericdollars

Campaign spending by candidate B.

Missing values: Review source documentation before recoding missing values.

prtystrAnumeric

Party strength for candidate A.

Missing values: Review source documentation before recoding missing values.

Practice tasks

  1. 1.Graph vote share against candidate A's spending share, then interpret the fitted slope in percentage-point terms.
  2. 2.Estimate voteA on shareA and write one careful interpretation.
  3. 3.Write one limitation about measurement, missing data, or omitted variables.