A collection of R functions to clean, export, summarise and plot questionnaire data of the GLAD (Genetic Links to Anxiety and Depression) study.
Requires the devtools
package:
devtools::install_github("lyh970817/gladfunctions")
GLAD_getdescr
to get descriptions for variables (without needing to look at the dictionary manually)
feather
format exports
Vectorized GLAD_sheet
function
Some more complicated derived variable examples on AGP and on ED
Put negative to positive for all continuous variables in recoding
Specifying limits for plots — useful for include_outlier
examination
Using text files named after questionnaires containing variable lists for selection
Create person data request record directory
To see the full list of exported functions:
library(gladfunctions)
ls("package:gladfunctions")
Or check out the Rmarkdown vignette and the source code.
Requires raw Qualtrics exports or cleaned data files exported by the functions.
Please speak to Henry Rogers in the BioResource Office for a python
script to prepare Qulatrics exports (extract exports from Qualtrics and remove participant personal information).
Please open an issue on this GitHub page to report bugs and suggest changes.
Gender difference plots for all the continuous variables
Swap GLAD gender colours
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.