-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.Rmd
66 lines (48 loc) · 3.26 KB
/
index.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
---
title: "Survey Research Datasets and R"
author: "Danny Smith"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: ["book.bib", "packages.bib"]
biblio-style: apalike
link-citations: yes
url: 'https\://socialresearchcentre.github.io/r_survey_datasets/'
github-repo: 'socialresearchcentre/r_survey_datasets'
---
```{r setup, include=FALSE}
options(
htmltools.dir.version = FALSE, formatR.indent = 2,
width = 80, digits = 4, warnPartialMatchAttr = FALSE, warnPartialMatchDollar = FALSE
)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(dplyr)
```
```{r download-data, include=FALSE}
if (!file.exists("data/gss/GSS2018.sav") | !file.exists("data/gss/GSS2018.dta")) {
if (!dir.exists("data")) dir.create("data")
# Download datasets
download.file("http://gss.norc.org/Documents/spss/2018_spss.zip", "data/gss_2018_spss.zip")
download.file("http://gss.norc.org/Documents/stata/2018_stata.zip", "data/gss_2018_stata.zip")
# Unzip
unzip("data/gss_2018_spss.zip", exdir = "data/gss")
unzip("data/gss_2018_stata.zip", exdir = "data/gss")
}
```
# Preface {-}
This book accompanies the "Survey Research Datasets and R" workshop delivered for the [7th Biennial ACSPRI Social Science Methodology Conference](https://conferences.acspri.org.au/2020/). Many thanks to ACSPRI for having us, and to the workshop attendees for participating.
The R packages covered in this book are the result of uncountable hours of hard work by the R community, and all are freely available and released under open source licenses. The work we do would not be possible without them!
#### License {-}
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons Licence" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
This work, as a whole, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
#### Datasets {-}
We chose to use a real life survey dataset for demonstration purposes. The majority of examples throughout use data from NORC at the University of Chicago's 2018 [General Society Survey](http://gss.norc.org/Get-The-Data).^[Smith, Tom W, Peter Marsden, Michael Hout, and Jibum Kim. General Social Surveys, 1972-2014]
The online data examples use publicly available data from the [Tidy Tuesday](https://github.com/rfordatascience/tidytuesday) project, the Australian [Bureau of Meteorology](http://www.bom.gov.au) and the [Queensland Government](https://www.data.qld.gov.au).
A very heartfelt thankyou to the people and organisations advocating for open data release and doing the work to make this data publicly available.
#### About the author {-}
Danny Smith is a Senior Data Scientist at the [Social Research Centre](https://www.srcentre.com.au/). Danny has worked as a survey programmer, analyst and data scientist in the survey research industry for 10 years.
His main interest and expertise is in research systems architecture, building systems that support automation of data workflows and processes and associated tools. He is an avid R user and supporter of free and open source software.
You can find him on GitHub (https://github.com/gorcha/).