Function to take a roll call data set and the names of opposition and governing parties. The opposition party should be as extreme in opposition as possible. This function helps to achieve identification by constraining discrimination parameters. For bills on which the opposition votes in majority, discrimination is constrained to be positive. For bills on which the government votes in majority, discrimination is constrained to be negative. For other bills, discrimination is free to float.
1 2 |
opp |
Character, name of opposition party to filter data |
gov |
Character, name of governing party to filter data |
vote_data |
Voting data in list form, with each element of list equal to a legislature |
legislature |
The specific legislature in the list to choose |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.