/
README.Rmd
54 lines (40 loc) · 1.5 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "A unified approach to understanding randomness in sport"
output:
github_document:
html_preview: true
---
A paper analyzing competitiveness across the four major sports.
## Slides
- [NESSIS 2017](http://bigfour.github.io/competitiveness/NESSIS_2017.html)
- [UMass 2017](http://bigfour.github.io/competitiveness/umass2017.html)
- [CMU 2017](http://bigfour.github.io/competitiveness/cmu2017.html)
- [Fields Institute 2018](http://bigfour.github.io/competitiveness/fields2018.html)
## To knit the paper:
#. Use the **Compile PDF** button in RStudio, or
#. Select **Tools -> Shell...** from the menu and execute:
```{r, engine='bash', eval=FALSE}
make
```
## Data wrangling
To re-build the `bigfour` data:
```{r, engine='bash', eval=FALSE}
make bigfour
```
Note that this operation will look for a set of proprietary data files in a `data_raw` folder. This folder is not present in this repository due to licensing restrictions. However, our version of the resulting `bigfour.rda` file is present in the repository. This will enable you to run our simulations using the code below.
To re-do the simulations:
```{r, engine='bash', eval=FALSE}
make mcmc
```
## Compile papers
To make the Sloan paper:
```{r, engine='bash', eval=FALSE}
# install dependencies for Ubuntu
# sudo apt get install texlive-xetex texlive-math-extra
make sloan2016.pdf
```
Note that this requires `xelatex` and the Cambria family of fonts installed.
To make the journal paper:
```{r, engine='bash', eval=FALSE}
make aoas2017.pdf
```