Description Usage Arguments Value See Also Examples
Implements the resampled kernel density method to detect the excess number of election results with coarse vote-shares (a coarse vote-share is a fraction with a low denominator).
1 |
data |
Data frame with three columns with names N (number of votes), t (number who turned out to vote), and v (number who voted for the party the votes of which are being analyzed). Returns error if columns are named incorrectly. |
resamples |
Number of resamples; default |
bw |
Bandwidth for kernel density; default |
grid |
Number of points on which the density is estimated; default |
out |
Object containing parameters of beta-mixture model. If |
spikes
returns object of class out
.
fraud |
Estimated percentage of polling stations with fraud. |
ymax |
Upper envelope of kernel density samples. |
w |
Weights for each bin: the proportion of observations falling into a bin. |
out |
Maximum likelihood estimates of the mixture beta binomial parameters for turnout and votes. |
data |
Data used in estimation. |
See Also plot.out
, summary.out
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.