Learn R Programming

Lock5withR (version 1.2.2)

ElectionMargin: Election Margin

Description

Approval rating and election margin for recent presidential elections

Arguments

Format

A data frame with 11 observations on the following 5 variables.
  • Year Certain election years from 1940-2004
  • Candidate Incumbent US president
  • Approval Presidential approval rating at time of election
  • Margin margin of victory/defeat (as a percentage)
  • Result Outcome of the election for the imbumbent: Lost or Won

Source

Silver, Nate, "Approval Ratings and Re-Election Odds", fivethirtyeight.com, posted January 28, 2011.

Details

Data include US Presidential elections since 1940 in which an incumbent was running for president. The approval rating for the sitting president is comapred to the margin of victory/defeat in the election.

Examples

Run this code

data(ElectionMargin)

Run the code above in your browser using DataLab