-
Notifications
You must be signed in to change notification settings - Fork 0
/
whyr.Rmd
182 lines (112 loc) · 2.89 KB
/
whyr.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
title: "Clean up your data screening process with reporteR"
author: "Anne Helby Petersen and Claus Thorn Ekstrøm<br>UCPH Biostatistics"
date: 'December 3rd, 2020'
output:
xaringan::moon_reader:
lib_dir: libs
css: ['default', 'hygge', 'animate.min.css', 'ku.css']
seal: true
nature:
ratio: '16:9'
slideNumberFormat: '%current%'
highlightStyle: ir-black
highlightLines: true
countIncrementalSlides: false
---
class: animated, fadeIn
layout: true
---
background-image: url(pics/title.png)
background-size: 100%
---
background-image: url(pics/manbeer.jpg)
background-size: 100%
class: middle, center
# The RESCueH project
```{r setup, include=TRUE, echo=FALSE, warning=FALSE, message=FALSE}
#library(knitr)
options(htmltools.dir.version = FALSE, cache=TRUE)
knitr::opts_chunk$set(dev.args=list(bg="transparent"), fig.width=16, fig.height=7)
source("kutheme.R")
```
---
class: center
# Timeline follow back
```{r, echo=FALSE}
DF <- data.frame(day1=sample(1:25, 6),
day2=c(NA, NA, sample(1:25, 3), 88),
day3=c(NA, 99, 40, sample(1:25, 3)))
head(DF, 4)
```
---
class: center
# Timeline follow back
```{r, echo=FALSE}
head(DF, 6)
```
---
class: center
# Monthly Alcohol units
```{r echo=FALSE,message=FALSE, warning=FALSE, error=FALSE}
tlfb <- data.frame(units=dget("tlfb.txt"))
p <- ggplot(tlfb, aes(units)) + geom_dotplot() +
xlab("Units") + ylab("Frequency") +
theme_xkcd()+
theme(
axis.text.y = element_blank(),
axis.ticks = element_blank())
p
```
---
background-image: url(pics/flower.png)
background-size: 60%
class: center, middle
---
# Design idea for dataReporter
* Aid researchers in identifying problems that we didn't consider.
* Ensure that everything you checked (and **didn't check**) is documented.
* Enable **collaborations** with non-statisticians.
* Encourage reproducible research
dataReporter is **not**
* a cleaner
* a formal rule validator
Documentation to be **read** and **assessed** by a human.
---
.footnote[
# Data on US presidents
```{r eval=TRUE}
head(dataReporter::presidentData, 5)
```
]
---
# Let's see it in action
```{r eval=FALSE}
# Install package
devtools::install_github("ekstroem/dataReporter")
# Get example data
data(presidentData)
# Main function
makeDataReport(presidentData) # Produces report
# When data is screened and "clear" for use
makeCodebook(presidentData) # Produces condensed codebook
```
---
background-image: url(pics/dr-1.png)
background-size: 80%
---
background-image: url(pics/dr-2.png)
background-size: 90%
---
background-image: url(pics/dr-3.png)
background-size: 85%
---
background-image: url(pics/dr-5.png)
background-size: 100%
---
background-image: url(pics/dr-4.png)
background-size: 100%
---
background-image: url(pics/dr-6.png)
background-size: 82%
.caption-right-vertical[makeCodebook() result]