Skip to content

Commit cb4f8dd

Browse files
authored
Merge pull request #67 from datapages/comps
Comps
2 parents 827122a + 2755fc3 commit cb4f8dd

3 files changed

Lines changed: 41 additions & 5 deletions

File tree

_quarto.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ website:
2626
text: Data Documentation
2727
- href: itemtext.qmd
2828
text: Item Text
29+
- text: "Competitions"
30+
menu:
31+
- href: comps_standard.qmd
32+
text: The Competition Data Standard
2933
- text: "More"
3034
menu:
3135
- href: research.qmd

comps_standard.qmd

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: "The Competition Data Standard"
3+
---
4+
5+
Note: This is an experimental feature.
6+
7+
## The data standard
8+
9+
The IRW competition data standard is meant to describe data derived from pairwise comparisons or competitions. Such data are widely analyzed using ELO or Bradley-Luce-Terry approaches; more information about these approaches is available [here](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-040722-061813). The key distinction between these data and the conventional IRW data is that there are not `id` and `item` identifiers here but rather identifers of the two `agents` that are involved in a given competition.
10+
11+
- `agent_a` name/id of first competitor
12+
- `agent_b` name/id of second competitor
13+
- `date` Time of the data point in UNIX format.
14+
- `homefield` Indicator of agent that had advantage based on game features (e.g., where game was played, who played first, etc).
15+
- `score_a` Score of `agent_a`.
16+
- `score_b` Score of `agent_b`.
17+
- `winner` Winner of the competition (typically based on a comparison of scores). Values will be `agent_a`, `agent_b` or `draw`.
18+
19+
20+
## Accessing the competition data
21+
22+
The competitions data can be easily accessed via the `irw` R package:
23+
```{r}
24+
#| eval: false
25+
#| echo: true
26+
27+
# Install and load the package
28+
df <- irw::irw_fetch("collegefb_2021and2022", comp = TRUE)
29+
head(df)
30+
```
31+
32+
Documentation related to the tables (including table names as with `collegefb_2021and2022`) can be found [here](https://docs.google.com/spreadsheets/d/1WZZYyVC2cmw8CUJM69qP0F_ZlQjQfdkCZbdsG-8mUrs/edit?usp=sharing).

renv.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@
740740
"stats",
741741
"tibble"
742742
],
743-
"Hash": "8639bed29649d9af0f4abcc65dde9f94"
743+
"Hash": "bd79e7714e4abd3930a746664f728581"
744744
},
745745
"jquerylib": {
746746
"Package": "jquerylib",
@@ -1128,14 +1128,14 @@
11281128
},
11291129
"redivis": {
11301130
"Package": "redivis",
1131-
"Version": "0.11.8",
1131+
"Version": "0.11.9",
11321132
"Source": "GitHub",
11331133
"RemoteType": "github",
11341134
"RemoteHost": "api.github.com",
1135-
"RemoteRepo": "redivis-r",
11361135
"RemoteUsername": "redivis",
1136+
"RemoteRepo": "redivis-r",
11371137
"RemoteRef": "main",
1138-
"RemoteSha": "077c906c64883242f2a5c3df10f2e3c8d4d4d9cb",
1138+
"RemoteSha": "0359c91c29bcd65074354d7166bcee5985a9995f",
11391139
"Requirements": [
11401140
"R",
11411141
"arrow",
@@ -1152,7 +1152,7 @@
11521152
"tibble",
11531153
"uuid"
11541154
],
1155-
"Hash": "0febbbb2b4e4f904fbc72031ad7e7307"
1155+
"Hash": "2de262c21b2c2a555989564fb274f7b7"
11561156
},
11571157
"renv": {
11581158
"Package": "renv",

0 commit comments

Comments
 (0)