R/data-vote_nsa.R

#' Predicting who would vote for NSA Mass Surveillance
#'
#' In 2013, the House of Representatives voted to not stop the National
#' Security Agency's (NSA's) mass surveillance of phone behaviors. We look at
#' two predictors for how a representative voted: their party and how much
#' money they have received from the private defense industry.
#'
#'
#' @name vote_nsa
#' @docType data
#' @format A data frame with 434 observations on the following 5 variables.
#' \describe{
#'   \item{name}{Name of the Congressional representative.}
#'   \item{party}{The party of the representative: \code{D} for Democrat and \code{R} for Republican.}
#'   \item{state}{State for the representative.}
#'   \item{money}{Money received from the defense industry for their campaigns.}
#'   \item{phone_spy_vote}{Voting to rein in the phone dragnet or continue allowing mass surveillance.}
#'   }
#' @references Kravets, D., 2020. Lawmakers Who Upheld NSA Phone Spying Received
#' Double The Defense Industry Cash. WIRED.
#' Available at \url{https://www.wired.com/2013/07/money-nsa-vote/}.
#' @source \href{https://www.maplight.org/}{MapLight}.
#' Available at \url{http://s3.documentcloud.org/documents/741074/amash-amendment-vote-maplight.pdf}.
#' @keywords datasets
#' @examples
#'
#' table(vote_nsa$party, vote_nsa$phone_spy_vote)
#' boxplot(vote_nsa$money / 1000 ~ vote_nsa$phone_spy_vote,
#'         ylab = "$1000s Received from Defense Industry")
#'
"vote_nsa"

Try the usdata package in your browser

Any scripts or data that you put into this service are public.

usdata documentation built on June 22, 2021, 1:06 a.m.