-
Notifications
You must be signed in to change notification settings - Fork 0
/
project-functions.Rmd
54 lines (34 loc) · 1.35 KB
/
project-functions.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
54
---
title: "Functions used in the analysis"
author: "Bryan Mayer"
date: "`r Sys.Date()`"
output:
workflowr::wflow_html:
code_folding: none
editor_options:
chunk_output_type: console
---
## Processing functions (`processing_functions.R`)
These functions were used for data manipulation generally related to presentation in tables and figures.
```{r, code=readLines("../code/processing_functions.R"), eval = F}
```
Labels for exposure analysis plots:
```{r, code=readLines("../code/plot_labels.R"), eval = F}
```
## Model fitting code
### Model data preparation (`risk_fit_functions.R`)
These are functions that prepare the data for model fitting.
```{r, code=readLines("../code/risk_fit_functions.R"), eval = F}
```
### Optimization functions (`optim_functions.R`)
These are wrappers around the optim function to fit the model parameters. The tidy functions process the model output into a tidy results format.
```{r, code=readLines("../code/optim_functions.R"), eval = F}
```
## Build project (`build_all.R`)
Builds the project website by compiling all of the Rmarkdown files using the workflowr API.
```{r, code=readLines("../code/build_all.R"), eval = F}
```
## Publish project (`build_all.R`)
Publishes the project website by compiling all of the Rmarkdown files using the workflowr API.
```{r, code=readLines("../code/publish_all.R"), eval = F}
```