R/intrade12.R

#' Intrade Prediction Market Data
#'
#' Data from Intrade, an online prediction market, in days leading up to the 2012 United
#' States Presidential Election.
#'
#' @format A data frame with 32623 rows and 8 variables:
#' \describe{
#'  \item{ .row }{ integer: row number }
#'  \item{ day }{ Date: date of the session }
#'  \item{ statename }{ character: full name of each state }
#'  \item{ PriceD }{ numeric: closing price (predicted vote share) of the Democratic nominee’s market }
#'  \item{ VolumeD }{ integer: total session trades of the Democratic Party nominee’s market }
#'  \item{ PriceR }{ numeric: closing price (predicted vote share) of the Republican nominee’s market }
#'  \item{ VolumeR }{ integer: total session trades of the Republican Party nominee’s market }
#'  \item{ state }{ character: abbreviation of each state }
#' }
#'
#'
#' @details
#' See \emph{QSS} Table 4.9.
#'
#'
#' @references
#' \itemize{
#' \item{ Imai, Kosuke. 2017. \emph{Quantitative Social Science: An Introduction}.
#' Princeton University Press. \href{http://press.princeton.edu/titles/11025.html}{URL}. }
#' \item { David Rothschild (2009) “Forecasting elections: Comparing prediction markets,
#' polls, and their biases.” \emph{Public Opinion Quarterly}, vol. 73, no. 5, pp. 895–916.
#' doi = 10.1093/poq/nfp082 }
#'}
"intrade12"
kosukeimai/qss-package documentation built on April 20, 2022, 2:28 p.m.