RCIMeasure: Calcualte a relative confidence index between a winner and...

Description Usage Arguments Value Examples

View source: R/people_prediction.R

Description

Calcualte a relative confidence index between a winner and other candidates.

Usage

1
RCIMeasure(x, partyNames = NULL)

Arguments

x

a numerical vector of the winning ratings for each party.

partyNames

a character vector of party names in the election race.

Value

a vector of relative confidence indexes by each party.

Examples

1
2
RCIMeasure(c(1, 10, 3))
RCIMeasure(c(1, 10, 3), c("Labor", "Greens", "LibNat"))

uyenhoang/pplpredict documentation built on May 3, 2019, 2:41 p.m.