Description Usage Arguments Examples
This convenience function takes two numeric vectors of vote share data and returns the estimated two-party swing.
1 |
a1 |
Party A vote share at time 1. |
a2 |
Party A vote share at time 2. |
b1 |
Party B vote share at time 1. |
b2 |
Party B vote share at time 2. |
type |
Which swing calculation to use. Either "butler" or "steed". Defaults to "butler". |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.