Skip to content

Commit ef33142

Browse files
committed
working on presentation for survey tutorial
1 parent cfe99dd commit ef33142

File tree

202 files changed

+6324
-2570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+6324
-2570
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Quick tutorial on preserving survey data
2+
3+
In this presentation we'll show you how to process survey data using a live example.
4+
5+
We've created a short survey that you can fill out if you want to contribute your own responses. We'll then show you live summary data and provide a demonstration of how to process this data to remove confidential data.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
```{r qrcode}
3+
#| echo: false
4+
library(qrcode)
5+
6+
code <- qr_code(WEBSITE_URL)
7+
png(filename="qrcode.png")
8+
plot(code)
9+
invisible(dev.off())
10+
11+
```
12+

presentation/00-follow-along.md renamed to presentation/.ipynb_checkpoints/00-survey-qrcode-checkpoint.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Follow along {.smaller}
1+
## Take our survey {.smaller}
22

33
:::: {.columns}
44

@@ -19,4 +19,3 @@
1919

2020
::::
2121

22-
[`r WEBSITE_SHORT`](`r WEBSITE_URL`) ([PDF](presentation.pdf))
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Goals
2+
- [ ] Create a survey in Qualtrics to use for data collection.
3+
- [ ] Clean and process the data to remove non-consenters and any confidential data.
4+
- [ ] Create and publish usable data that does not reveal any confidential data.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Creating a survey in Qualtrics
2+
3+
![Qualtrics-Edit](images/qualtrics-edit.png)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Exporting Qualtrics Data
2+
3+
![Qualtrics-export](images/qualtricsc-export)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Processing survey data in stata
2+
3+
After exporting the raw survey data and loading it into stata you'll need to clean it up a bit.
4+
5+
```{.stata}
6+
import delimeted "${filepath}/data/raw/survey_data.csv", varnames(1) clear
7+
8+
** cleaning data
9+
drop if _n<=2 // drop first two rows of data, don't contain survey responses
10+
11+
label var consent "Consent" // labelling variables for readability
12+
label var age_1 "Age in years"
13+
label var gender "Gender"
14+
label var education "Highest level of education completed"
15+
label var num_tabs_1 "Number of computer tabs open"
16+
label var name_confidential "Respondent name"
17+
label var number_confidential "Respondent phone number"
18+
```

0 commit comments

Comments
 (0)