-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
64 lines (46 loc) · 2.63 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
54
55
56
57
58
59
60
61
62
63
---
output: github_document
header-includes:
- \usepackage{titling}
- \pretitle{\begin{center}
\includegraphics[width=2in,height=2in]{man/figures/logo.png}\LARGE\\}
- \posttitle{\end{center}}
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Understanding Society Data Cleaning
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
<!-- badges: end -->
<!-- badger::badge_doi("10.17605/OSF.IO/43N7P", "green") -->
[![](https://img.shields.io/badge/doi-10.17605/OSF.IO/6K9NV-green.svg)](https://doi.org/10.17605/OSF.IO/6K9NV)
<!-- badges: end -->
## Motivation
The motivation for `ukhlsclean` is to develop a set of standard functions for processing raw data from the UK Household Longitudinal Study, also known as Understanding Society, which is an ongoing longitudinal survey of individuals and households representative of the UK population. The survey collects a wide variety of demographic, behavioural, health, and labour market information.
## Installation
`ukhlsclean` is open source and [available on GitHub](https://github.com/STAPM/ukhlsclean). If you are on a Windows machine you will need to [install Rtools](https://www.rdocumentation.org/packages/installr/versions/0.22.0/topics/install.Rtools).
Once that is sorted, you can install the latest version or a specified version from GitHub with:
```{r gh_installation, message=FALSE, eval = FALSE}
#install.packages("devtools")
#install.packages("getPass")
#install.packages("git2r")
devtools::install_git(
"https://github.com/STAPM/ukhlsclean",
ref = "x.x.x",
build_vignettes = FALSE
)
# Where uname is your GitHub user name.
# ref is the version you want to install - remove for the latest version
```
## Citation
Morris, D and Chen, RKL (2023). ukhlsclean: Data Wrangling for Understanding Society - The UK Household Longitudinal Study. R package version [x.x.x]. University of Sheffield. https://github.com/STAPM/ukhlsclean . doi: https://doi.org/10.17605/OSF.IO/6K9NV
## Projects
Some examples of projects making use of the `ukhlsclean` package are:
1. [Smoking, drinking, and work outcomes](https://gitlab.com/SPECTRUM_Sheffield/projects/work-productivity). Here the package is used to create a clean longitudinal dataset of smoking and drinking behaviours, labour market outcomes, and the covariates needed to model labour market outcomes.