Title: | Data Package for the 2016 United States Federal Elections |
---|---|
Description: | Easily analyze relational data from the United States 2016 federal election cycle as reported by the Federal Election Commission. This package contains data about candidates, committees, and a variety of different financial expenditures. Data is from <https://www.fec.gov/data/browse-data/?tab=bulk-data>. |
Authors: | Marium Tapal [aut, cre] , Rana Gahwagy [aut], Irene Ryan [aut], Benjamin S. Baumer [aut] |
Maintainer: | Marium Tapal <[email protected]> |
License: | CC0 |
Version: | 0.1.4 |
Built: | 2024-11-12 04:56:38 UTC |
Source: | https://github.com/baumer-lab/fec16 |
Summary financial information for each campaign.
campaigns
campaigns
A data frame with 1898 rows and 25 columns, providing financial information for each House/Senate campaign:
A code assigned to a candidate by the FEC
Candidate name
Incumbent challenger status with designation: C = Challenger, I = Incumbent, O = Open Seat
Party code
The political party affiliation reported by the candidate
Total receipts
Transfers from authorized committees
Total disbursements
Transfers to authorized committees
Beginning cash
Ending cash
Contributions from candidate
Loans from candidate
Other loans
Candidate loan repayments
Other loan repayments
Debts owed by
Total individual contribution
Candidate's state
Candidate's district
Contributions from other political committees
Contributions from party committees
Coverage end date (YYYY-MM-DD)
Refunds to individuals
Refunds to committees
https://transition.fec.gov/general/FederalElections2016.shtml, updated 2020-03-02
Basic information for each candidate.
candidates
candidates
A data frame with 4648 rows and 15 columns, providing information for each candidate:
A 9-character alpha-numeric code assigned to a candidate by the FEC, which remains the same across election cycles if running for the same office
Candidate name
The political party affiliation reported by the candidate
Candidate's Election Year
Candidate's state
Candidate office with designation: H = House, P = President, S = Senate
Congressional district number: Congressional at-large 00, Senate 00, Presidential 00
Incumbent challenger status with designation: C = Challenger, I = Incumbent, O = Open Seat
Candidate status with designation: C = Statutory candidate, F = Statutory candidate for future election, N = Not yet a statutory candidate, P = Statutory candidate in prior cycle
ID of the candidate's principal campaign committee assigned by FEC
Candidate's Mailing address - street 1
Candidate's Mailing address - street 2
Candidate's Mailing address - city
Candidate's Mailing address - state
Candidate's Mailing address - ZIP code
https://www.fec.gov/campaign-finance-data/candidate-master-file-description/, updated 2020-03-02
Provides data pertaining to each committee registered with the Federal Election Commission.
committees
committees
A data frame with 17654 rows and 15 columns with information about FEC committees.
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Name of the committee
The officially registered treasurer for the committee
Street 1
Street 2
City
State
ZIP Code
A = Authorized by a candidate
B = Lobbyist/Registrant PAC
D = Leadership PAC
J = Joint fundraiser
P = Principal campaign committee of a candidate
U = Unauthorized
Committee Type, listed here: https://www.fec.gov/campaign-finance-data/committee-type-code-descriptions/
Committee Party, listed here: https://www.fec.gov/campaign-finance-data/party-code-descriptions/
Filing frequency: A = Administratively terminated,
D = Debt
M = Monthly filer
Q = Quarterly filer
T = Terminated
W = Waived
Interest group category:
C = Corporation
L = Labor organization
M = Membership organization
T = Trade association
V = Cooperative
W = Corporation without capital stock
Connected organization's name
Candidate identification:When a committee has a committee type designation of H, S, or P, the candidate's identification number will be entered in this field.
https://www.fec.gov/campaign-finance-data/committee-master-file-description/, updated 2020-03-02
Provides data pertaining to each candidate and their contributions from committees during the 2016 general election.
contributions
contributions
A data frame with 1000 rows and 15 columns with information about candidate committee contributions.
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Amendment indicator: Indicates if the report being filed is new (N), an amendment (A) to a previous report or a termination (T) report
Indicates the type of report filed, listed here: https://www.fec.gov/campaign-finance-data/report-type-code-descriptions/
This code indicates the election for which the contribution was made. EYYYY (election Primary, General, Other plus election year)
Transaction types, listed here: https://www.fec.gov/campaign-finance-data/transaction-type-code-descriptions/
Entity Type:
CAN = Candidate
CCM = Candidate Committee
COM = Committee
IND = Individual (a person)
ORG = Organization (not a committee and not a person)
PAC = Political Action Committee
PTY = Party Organization
Contributor/lender/transfer Name
City
State
ZIP Code
Transaction date (YYYY-MM-DD)
Transaction Amount
For contributions from individuals this column is null. For contributions from candidates or other committees this column will contain that contributor's FEC ID
A 9-character alpha-numeric code assigned to a candidate by the FEC, which remains the same across election cycles if running for the same office
Only for Electronic Filings. A unique identifier associated with each itemization or transaction appearing in an FEC electronic file. A transaction ID is unique for a specific committee for a specific report.
https://www.fec.gov/campaign-finance-data/contributions-committees-candidates-file-description/, Updated 2020-03-02
Operating expenditure information for a simple random sample of 1000 entries out of 1744187
expenditures
expenditures
A data frame with 1000 rows and 20 columns:
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Amendment indicator: Indicates if the report being filed is new (N), an amendment (A) to a previous report or a termination (T) report
Report year
Indicates the type of report filed, listed here: https://www.fec.gov/campaign-finance-data/report-type-code-descriptions/
Indicates FEC form line number
Indicates FEC form type
Schedule type: Schedule B - Itemized disbursements
Contributor/lender/Transfer Name
City
State
ZIP Code
Transaction date (YYYY-MM-DD)
Transaction Amount
Primary general indicator
Purpose
Disbursement category code: 001-012 and 101-107
Disbursement Category Code Description, listed here: https://www.fec.gov/campaign-finance-data/disbursement-category-code-descriptions/
Entity Type:
CAN = Candidate
CCM = Candidate Committee
COM = Committee
IND = Individual (a person)
ORG = Organization (not a committee and not a person)
PAC = Political Action Committee
PTY = Party Organization
Only for Electronic Filings. A unique identifier associated with each itemization or transaction appearing in an FEC electronic file. A transaction ID is unique for a specific committee for a specific report.
Back reference transaction ID: Used to associate one transaction with another transaction in the same report (using file number, transaction ID and back reference transaction ID). For example, a credit card payment and the sub-itemization of specific purchases. The back reference transaction ID of the specific purchases will equal the transaction ID of the payment to the credit card company.
https://www.fec.gov/campaign-finance-data/operating-expenditures-file-description/, updated 2020-03-02
The fec16 package provides the following 9 datasets from the Federal Election Commission's 2015-2016 election cycle:
Candidates: candidates
Committees: committees
House Results: results_house
Senate Results: results_senate
Presidential Results: results_president
Individual Contributions: individuals
Committee Contributions: contributions
House/Senate Current Campaigns: campaigns
Operating Expenditures: expenditures
Transactions From One Committee To Another: transactions
Political Action Committee (PAC) and Party Summary Financial Information: pac
The entire candidates, committees, campaigns, results_house, results_senate, results_president, and pac datasets and samples containing 1000 entries of the other datasets are available directly in the package. For the datasets containing samples, full versions can be retrieved via the following functions:
Individual Contributions: read_all_individuals
Committee Contributions: read_all_contributions
Operating Expenditures: read_all_expenditures
Transactions From One Committee To Another: read_all_transactions
In addition, fec16
provides the states dataset giving geographical information about the 50 states.
Marium Tapal: https://github.com/mariumtapal
Irene Ryan: https://github.com/ireneryan
Rana Gahwagy: https://github.com/ranawg
Ben Baumer: https://github.com/beanumber
Information for a simple random sample of transactions from individuals to candidates/committees.
individuals
individuals
A data frame with 1000 rows and 16 columns providing information for each transaction:
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Amendment indicator: Indicates if the report being filed is new (N), an amendment (A) to a previous report or a termination (T) report
Indicates the type of report filed, listed here: https://www.fec.gov/campaign-finance-data/report-type-code-descriptions/
This code indicates the election for which the contribution was made. EYYYY (election Primary, General, Other plus election year)
Transaction types, listed here: https://www.fec.gov/campaign-finance-data/transaction-type-code-descriptions/
Entity Type:
CAN = Candidate
CCM = Candidate Committee
COM = Committee
IND = Individual (a person)
ORG = Organization (not a committee and not a person)
PAC = Political Action Committee
PTY = Party Organization
Contributor/lender/Transfer Name
City
State
ZIP Code
Employer
Occupation
Transaction date (YYYY-MM-DD)
Transaction Amount
For contributions from individuals this column is null. For contributions from candidates or other committees this column will contain that contributor's FEC ID.
Only for Electronic Filings. A unique identifier associated with each itemization or transaction appearing in an FEC electronic file. A transaction ID is unique for a specific committee for a specific report.
https://www.fec.gov/campaign-finance-data/contributions-individuals-file-description/, updated 2020-03-02
PAC and party summary financial information
pac
pac
A data frame with 12049 rows and 27 columns:
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Name of the committee
Committee Type, listed here: https://www.fec.gov/campaign-finance-data/committee-type-code-descriptions/
A = Authorized by a candidate
B = Lobbyist/Registrant PAC
D = Leadership PAC
J = Joint fundraiser
P = Principal campaign committee of a candidate
U = Unauthorized
Filing frequency: A = Administratively terminated,
D = Debt
M = Monthly filer
Q = Quarterly filer
T = Terminated
W = Waived
Total receipts
Transfers from affiliates
Contributions from individuals
Contributions from other political committees
Contributions from candidate
Candidate loans
Total loans received
Total disbursements
Transfers to affiliates
Refunds to individuals
Refunds to other political committees
Candidate loan repayments
Loan repayments
Cash beginning of period
Cash close of period
Debts owed by
Non-federal transfers received
Contributions to other committees
Independent expenditures
Party coordinated expenditures
Non-federal share expenditures
Coverage end date (YYYY-MM-DD)
https://www.fec.gov/campaign-finance-data/pac-and-party-summary-file-description/, updated 2020-03-02
read_all_contributions
returns a dataframe about contribution data
read_all_contributions(n_max = Inf, verbose = interactive())
read_all_contributions(n_max = Inf, verbose = interactive())
n_max |
Integer specifying the max amount of entries in the dataset. Defaults to the possible maximum. |
verbose |
A progress bar is shown if R is running interactively. Defaults to |
The entire dataframe. More information about variables is at ?contributions
.
read_all_contributions() read_all_contributions(n_max = 250)
read_all_contributions() read_all_contributions(n_max = 250)
read_all_expenditures
returns a dataframe about operating expenditure data
read_all_expenditures(n_max = Inf, verbose = interactive())
read_all_expenditures(n_max = Inf, verbose = interactive())
n_max |
Integer specifying the max amount of entries in the dataset. Defaults to the possible maximum. |
verbose |
A progress bar is shown if R is running interactively. Defaults to |
The entire dataframe. More information about variables is at ?expenditures
.
read_all_expenditures() read_all_expenditures(n_max = 250)
read_all_expenditures() read_all_expenditures(n_max = 250)
read_all_individuals
returns a dataframe about transactions from individuals to candidates/committees
read_all_individuals(n_max = Inf, verbose = interactive())
read_all_individuals(n_max = Inf, verbose = interactive())
n_max |
Integer specifying the max amount of entries in the dataset. Defaults to the possible maximum. |
verbose |
A progress bar is shown if R is running interactively. Defaults to |
The entire dataframe. More information about variables is at ?individuals
.
read_all_individuals() read_all_individuals(n_max = 250)
read_all_individuals() read_all_individuals(n_max = 250)
read_all_transactions
returns a dataframe about transaction data
read_all_transactions(n_max = Inf, verbose = interactive())
read_all_transactions(n_max = Inf, verbose = interactive())
n_max |
Integer specifying the max amount of entries in the dataset. Defaults to the possible maximum. |
verbose |
A progress bar is shown if R is running interactively. Defaults to |
The entire dataframe. More information about variables is at ?transactions
.
read_all_transactions() read_all_transactions(n_max = 250)
read_all_transactions() read_all_transactions(n_max = 250)
2016 House General Election Results
results_house
results_house
A data frame with 2110 rows and 13 columns providing information the House election results:
The state of the votes
District ID
A code assigned to a candidate by the FEC
A logical variable: TRUE if incumbent, FALSE if not
Party of the candidate
Number of votes in the primary election
Percentage of votes in the primary election
Number of runoff votes
Percentage of runoff votes
Number of votes in the general election
Percentage of votes in the general election
A logical variable: TRUE if candidate won, FALSE if not
Footnotes
https://transition.fec.gov/general/FederalElections2016.shtml, updated 2020-03-02
results_senate, results_president
2016 House General Election Results
results_president
results_president
A data frame with 619 rows and 6 columns providing information the House election results:
A code assigned to a candidate by the FEC
The state of the votes
Party of the candidate
Number of votes in the general election
Percentage of votes in the general election
A logical variable: TRUE if candidate won, FALSE if not
https://transition.fec.gov/general/FederalElections2016.shtml, updated 2020-03-02
2016 House General Election Results
results_senate
results_senate
A data frame with 377 rows and 10 columns providing information the House election results:
The state of the votes
A code assigned to a candidate by the FEC
A logical variable: TRUE if incumbent, FALSE if not
Party of the candidate
Number of votes in the primary election
Percentage of votes in the primary election
Number of votes in the general election
Percentage of votes in the general election
A logical variable: TRUE if candidate won, FALSE if not
Footnotes
https://transition.fec.gov/general/FederalElections2016.shtml, updated 2020-03-02
results_house, results_president
US States lookup table
states
states
A data frame with 50 rows and 4 columns:
two-character postal abbreviation
the name of the state
coarse region of the country that the state belongs to
finer region of the country that the state belongs to
Transaction information between committees
transactions
transactions
A data frame with 1000 rows and 16 columns:
A 9-character alpha-numeric code assigned to a committee by the Federal Election Commission
Amendment indicator: Indicates if the report being filed is new (N), an amendment (A) to a previous report or a termination (T) report
Indicates the type of report filed, listed here: https://www.fec.gov/campaign-finance-data/report-type-code-descriptions/
Primary general indicator:This code indicates the election for which the contribution was made. EYYYY (election Primary, General, Other plus election year)
Transaction type, listed here: https://www.fec.gov/campaign-finance-data/transaction-type-code-descriptions
Entity Type:
CAN = Candidate
CCM = Candidate Committee
COM = Committee
IND = Individual (a person)
ORG = Organization (not a committee and not a person)
PAC = Political Action Committee
PTY = Party Organization
Contributor/lender/Transfer Name
City
State
ZIP Code
Employer
Occupation
Transaction date (YYYY-MM-DD)
Transaction Amount
For contributions from individuals this column is null. For contributions from candidates or other committees this column will contain that contributor's FEC ID
Only for Electronic Filings. A unique identifier associated with each itemization or transaction appearing in an FEC electronic file. A transaction ID is unique for a specific committee for a specific report.
https://www.fec.gov/campaign-finance-data/any-transaction-one-committee-another-file-description/, updated 2020-03-02