Description Usage Arguments Value Examples
View source: R/people_prediction.R
Calcualte a relative confidence index between a winner and other candidates.
1 | RCIMeasure(x, partyNames = NULL)
|
x |
a numerical vector of the winning ratings for each party. |
partyNames |
a character vector of party names in the election race. |
a vector of relative confidence indexes by each party.
1 2 | RCIMeasure(c(1, 10, 3))
RCIMeasure(c(1, 10, 3), c("Labor", "Greens", "LibNat"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.