Title: | Quantifying Group Performance in Individual Competitions |
---|---|
Description: | Compute the GPIC index as described in Pham (2020) <doi:10.35542/osf.io/ajz5v>. |
Authors: | Duy Nghia Pham [aut, cre] |
Maintainer: | Duy Nghia Pham <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-11-27 05:24:43 UTC |
Source: | https://github.com/cran/GPIC |
Compute the GPIC index as described in Pham (2020) doi:10.35542/osf.io/ajz5v.
GPIC index reflects both the quantity and quality of
prizes that a group of participants obtained in individual competitions.
Call vec2idx
and df2idx
to compute GPIC index
for a single group and multiple groups, respectively. The results of
Vietnamese National Olympiads are provided as sample datasets
vno
and vnomath
.
GPIC: Quantifying Group Performance in Individual
Competitions. Copyright (C) 2021 Duy Nghia Pham
GPIC is free
software: you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
GPIC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public
License along with GPIC. If not, see https://www.gnu.org/licenses/.
Duy Nghia Pham [email protected]
df2idx
computes the index based on the number of prizes that several
groups obtained and the proportion of prizes in the pool.
df2idx(df, pool = NULL, type = NULL)
df2idx(df, pool = NULL, type = NULL)
df |
a data frame with name of groups as the first column and number of prizes as remaining columns. |
pool |
a vector of prize counts or proportions from the pool. |
type |
the type of the above-mentioned |
df2idx
returns a dataframe with name of groups as the first
column and GPIC index as the second column.
df2idx(vnomath) df2idx(vnomath, c(61, 477, 836, 1007), "n") df2idx(vnomath, c(0.026, 0.200, 0.351, 0.423), "p")
df2idx(vnomath) df2idx(vnomath, c(61, 477, 836, 1007), "n") df2idx(vnomath, c(0.026, 0.200, 0.351, 0.423), "p")
n2p
converts a vector of counts to a vector of proportions.
n2p(n)
n2p(n)
n |
a vector of counts. |
n2p
returns a vector of proportions.
n2p(c(61, 477, 836, 1007))
n2p(c(61, 477, 836, 1007))
vec2idx
computes the index based on the number of prizes that a group
obtained and the proportion of prizes in the pool.
vec2idx(x, pool, type)
vec2idx(x, pool, type)
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 |
vec2idx
returns a numeric that is the GPIC index.
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")
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")
A dataset containing the information of more than 24,000 awarded students over 11 years.
vno
vno
A data frame with 24151 rows and 5 variables:
student ID
year of award
administrative contest team that delegated the student
test subject
award achieved
A dataset containing the number of prizes in Mathematics over 11 years of administrative contest teams
vnomath
vnomath
A data frame with 68 rows and 5 variables:
administrative contest team
number of First prizes
number of Second prizes
number of Third prizes
number of Consolation prizes