Function to take a data set, a legislator name, a majority party, and find bills to fix positions By fixing bills compared to the reference legislator. This type of identification has not performed well so far.
1 2 | fix_bills_refleg(legislator = NULL, party = NULL, vote_data = NULL,
legislature = NULL)
|
legislator |
Character string of the name of the legislator to use as a reference (ideal point fixed at 0) |
party |
Character string of the majority party in the legislature (will be used to determine reference legislator's ideal points on bills) |
vote_data |
Data frame with all of the votes for the particular legislature of analysis |
party_data |
Data frame with all of the party and demographic information for legislators in both legislatures |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.