Presidential Support Scores

Jeff Lewis

October 24, 2023

Calculating Presidential Support Scores from Voteview

Presidential support scores for individual members of Congress and for each chamber as a whole have been widely employed in the literature. These scores record the fraction of times that each member (or all members in the case of the aggregate measures) voted to support the president's position across all votes on which the president's position can be inferred.

Voteview includes the pseudo rollcall voting records for presidents. Those votes were determined as described by Poole on the legacy voteview.com site:

Please note that the House files now contain scores for most Presidents. For Presidents prior to Eisenhower these are based on roll calls corresponding to Presidential requests. These roll calls were compiled by an NSF project headed by Elaine Swift (Study No. 3371, Database of Congressional Historical Statistics, 1789-1989). Many of these scores are based upon a small number of roll calls so use them with caution!

How exactly to infer the positions taken by the president on particular votes may vary from source to source as will the calculation of the rate of support, so you should expect that there will be some differences between the scores that are calculated here and than those calculated by, for example, CQ.

For the Senate, the Voteview database only includes the presidents' positions on votes from 1955 forward. For the House, the presidents' positions are included in the Voteview database back to 1792 (although prior 1900 there are years in which the database includes no positions taken by the president).

Given these roll call "voting" records for the President in each year, we calculate member-level and chamber-level measures of presidential support for every year following the procedure described in George C. Edwards III "Measuring Presidential Success in Congress: Alternative Approaches." Journal of Politics (1985, 47(2):667-685).

If you continue scrolling through this page, you will find a plot comparing our support scores to the "overall" scores presented by Edwards for the House. The scores are within a point or two at the aggregate level in 28 of 31 years for which Edwards reports aggregate presidential support in the House of Representatives. You will also find summary plots of all of the scores across time for both the House and the Senate.

Presidential support score data for download

The following csv files are available:

The member-year level files contain standard Voteview member metadata and identifiers as well as:

  • pres_matches: Number of times a members vote agreed with the presidents

  • pres_votes: The number of votes upon which the president took a position

  • pres_there_for: The number of votes on which the president "voted" that the member also voted (cast a vote yea, nay or paired vote)

  • score: The support score (pres_matches/pres_votes). Following Edwards (1985) the score is missing if the member particated in less than one half of the votes on which the president "voted" (pres_there_for/pres_voted < 0.5).

How we do it

Here we walk through the code that we use to create the scores. If you want to alter the code to produce scores using a different formula, you can download the code along will the source for this file [here]{support_scores.Rmd}.

We begin with a function that calculates the score for a particular chamber and congress number:

pres_score <- function() {
  map_cast_codes <-c(NA, 1, 1, 1, 0, 0, 0, NA, NA, NA)
  # Load vote and description data for the given congress
  vote_dat <-
    read_csv("https://voteview.com/static/data/out/votes/HSall_votes.csv",
             col_types = cols()) %>%
    mutate(vote =  map_cast_codes[cast_code+1]) %>%
    select(-prob,-cast_code)
  
  desc_dat <-
    read_csv(
      "https://voteview.com/static/data/out/rollcalls/HSall_rollcalls.csv",
      guess_max = 1e6,
      col_types = cols()
    ) %>%
    select(date, rollnumber, congress, chamber) %>%
    mutate(year = lubridate::year(as.Date(date)))
  
  members_dat <-
    read_csv(
      "https://voteview.com/static/data/out/members/HSall_members.csv",
      col_types = cols(),
      guess_max = 1e6
    ) %>%
    select(congress,
           chamber,
           icpsr,
           state_abbrev,
           district_code,
           bioname,
           party_code)
  
  dat <- vote_dat %>%
    left_join(desc_dat, by = c("rollnumber", "chamber", "congress")) %>%
    left_join(members_dat %>% select(-chamber), by = c("icpsr", "congress"))
  
  pres_votes <- dat %>%
    filter(state_abbrev == "USA") %>%
    rename("pres_vote" = "vote") %>%
    select(congress, chamber, rollnumber, pres_vote)
  
  score <- dat %>%
    filter(state_abbrev != "USA") %>%
    left_join(pres_votes, by = c("congress", "chamber", "rollnumber")) %>%
    group_by(congress,
             chamber,
             year,
             icpsr,
             bioname,
             state_abbrev,
             district_code) %>%
    summarize(
      pres_matches = sum(vote == pres_vote, na.rm = T),
      pres_votes = sum(!is.na(pres_vote)),
      pres_there_for = sum(!is.na(pres_vote) &
                             !is.na(vote)),
      score = round(
        100 * ifelse(2 * pres_there_for >= pres_votes,
                     pres_matches / pres_votes, NA),
        1
      ),
      .groups = "drop"
    )
}

support_scores <- pres_score()

We then calculate the scores across all Congresses and chambers, starting with the the House:

write_csv(support_scores %>%
            filter(chamber == "House"),
          file = "house_presidential_support.csv")

and then the Senate:

write_csv(
  support_scores %>%
    filter(chamber == "Senate"),
  file = "senate_presidential_support.csv"
)

Aggregating by year

Here we calculate the average approval scores by year. One thing to note is that in some cases there are votes from two different Congresses taken in the same year. For the individual scores, we have created a distinct score for every Congress-year so that it is possible to aggregate to either the year or the Congress level. For the annual summary, we aggregate to the year level and so in some cases the annual rate combines votes taken in two different Congresses (and in some cases, loyalty to two different presidents).

Here we calculate the summary for the Senate:

summary_scores <- support_scores %>%
  filter(2 * pres_there_for >= pres_votes) %>%
  group_by(chamber, icpsr, congress, year) %>%
  summarize(
    pres_matches = sum(pres_matches),
    pres_votes = mean(pres_votes),
    pres_there_for = sum(pres_there_for),
    .groups = "drop"
  ) %>%
  group_by(chamber, year) %>%
  summarize(
    pres_matches = mean(pres_matches),
    pres_votes = mean(pres_votes),
    pres_there_for = mean(pres_there_for),
    .groups = "drop"
  ) %>%
  ungroup()  %>%
  mutate(score = round(100 * pres_matches / pres_votes, 1)) %>%
  select(chamber, year, score) %>%
  filter(!is.nan(score))

write_csv(summary_scores,
          file = "presidential_support_summary.csv")

Comparing Voteview-based scores to those presented in Edwards (1985)

We begin by loading data from Edwards (1985), Table 2 as well as the aggregate scores that we just created and merging those two datasets.

edwards <-
  read_csv("edwards_1985_support_scores.csv", col_types = cols())
agg_support_house <- summary_scores %>%
  filter(chamber == "House") %>%
  left_join(edwards)

We can then plot our chamber-level scores against those reported by Edwards:

Across the 31 years for which Edwards reports scores, there are only three years in which the difference between what Edwards reports and what we compute based on the Voteview data is greater than 2 percentage points. Those years are 1953, 1965, 1975, and 1978. We have not uncovered the source of these larger discrepancies.

The line plot below show the average level of presidential support in the House over the entire history of the chamber. Edwards' scores are overlayed in red for comparison in the period for which he reports them. As seen in the previous plot, the only major discrepancy between the two series occurs in 1965.

Support scores over time

Finally, we plot the presidential support scores for all House members and all Senate members across all years. Each point represents a member in a particular year. The points are "jittered" by small random shocks so that clusters of members with the same score in the same year can be distinguished.

House of Representatives

Prior to 1950, the number of votes upon which the scores are based are relatively small and the number of distinct scores is small with large numbers of members generally piling up at each possible value.

Senate

Note that at the moment the database does not include the presidents' positions on roll calls taken in the Senate prior to 1955.