vec2idx {GPIC} | R Documentation |
Compute GPIC for Single Group
Description
vec2idx
computes the index based on the number of prizes that a group
obtained and the proportion of prizes in the pool.
Usage
vec2idx(x, pool, type)
Arguments
x |
a vector of prize counts from a single group. |
pool |
a vector of prize counts or proportions from the pool. |
type |
the type of the above-mentioned |
Value
vec2idx
returns a numeric that is the GPIC index.
Examples
vec2idx(c(3, 19, 34, 22), c(61, 477, 836, 1007), "n")
vec2idx(c(3, 19, 34, 22), c(0.026, 0.200, 0.351, 0.423), "p")
[Package GPIC version 0.1.0 Index]