readDW_NOMINATE {Ecfun} | R Documentation |
Read the DW-NOMINATE data from their website.
Description
Read the DW-NOMINATE data
from their website using read_csv
,
adding a Year
= 2*congress+1787
, which is the
first year of each 2-year congress.
Usage
readDW_NOMINATE(file=
"https://voteview.com/static/data/out/members/HSall_members.csv",
...)
Arguments
file |
|
... |
optional arguments for |
Details
This is written to make it easy for users to
download the DW-NOMINATE
data from their
website, assuming it should be easier to remember
readDW_NOMINATE
than
readr::read_csv("https://voteview.com/static/data/out/members/HSall_members.csv")
.
Value
a tibble
with columns
congress |
|
chamber |
|
icpsr |
|
state_icpsr |
|
district_code |
|
state_abbrev |
Either 'USA' or a 2-letter abbreviation for this state in the US. |
party_code |
positive |
occupancy , last_means |
|
bioname |
|
bioguide_id |
|
born , died |
|
nominate_dim1 , nominate_dim2 |
|
nominate_log_likelihood |
|
nominate_goe_mean_probabilty |
|
nominate_number_of_votes |
|
nominate_number_of_errors |
|
conditional |
|
nokken_poole_dim1 , nokken_poole_dim2 |
|
Year |
|
Author(s)
Spencer Graves
Source
Embedded in an R Markdown vignette
by UCLA political science professor Jeff Lewis
in the voteview
project on 'GitHub'.
References
Timothy P. Nokken and Keith T. Poole (2004) "Congressional Party Defection in American History." Legislative Studies Quarterly, 29:545-568,.
Keith T. Poole (2005) Spatial models of parliamentary voting (Cambridge U. Pr.).
See Also
Examples
# Wrap in try(...) so it won't throw an error
# if the Voteview website is not available.
Nominate <- try(readDW_NOMINATE())