Description Usage Arguments Value Examples
View source: R/people_prediction.R
Calulate a people Prediction at electorate levels using relative confidence index
1 | peoplePrediction(Data, rci.vars, partyNames = NULL, transform = FALSE, ...)
|
Data |
a data frame of VoteCompass datasets |
rci.vars |
a character vector or a numeric vector of index of variable names of the winning ratings for each party. |
partyNames |
a character vector of full names for each party. |
... |
other arguments passed to |
transfrom |
a logical scalar to indicate if RCI variables are needed to rescale. Its default is FALSE. |
a data frame of aggregated relative confidence index for each party by electorates/ridings, the winner and the secondplace runner by RCI.
1 2 3 | peoplePrediction(Queensland, paste0("party", 1:4, "B"), partyNames = c("Labor", "Greens", "LibNat", "Katter"))
peoplePrediction(Queensland, paste0("party", 1:4, "B"), partyNames = c("Labor ","Greens" ,"LibNat", "Katter"), transform = TRUE)
peoplePrediction(Queensland, paste0("party", 1:3, "B"), partyNames = c("Labor", "Greens", "LibNat"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.