This wiki explains the structure of the **Data, Analysis, and Figures** component.
The component contains one main folder, **r_project**. If you want to reproduce the entire analysis, I recommend you download that folder as a ZIP file, open the *r_project.Rproj* file and then select the Rmarkdown file from the analysis sub-folder.
Within the project folder are the following sub-folders.
### analysis
This folder contains the Rmarkdown file (*analysis_script.Rmd*) for the analysis. The files report every single step I took from raw data to final analysis. Each step also contains annotations so that readers can go through the entire process. The HTML file (*analysis_report.html*) is the rendered version of the Rmarkdown file. To follow the analysis, I recommend looking at the HTML file because it is easier to read.
### data
This folder contains the data for the study. There are two sub-folders: **raw_data** and **processed_data**.
**raw_data** contains three raw data files: the logging data, the intake survey, and the outtake survey. *codebook_raw_data.docx* is the codebook for those three data files and explains all variables.
**processed_data** contains the cleaned and processed data files: the logging data, the intake survey, and the outtake survey. *codebook_processed_data.docx* is the codebook for those three data files and explains all variables. Because some objects in the Rscript are quite large, I also added the workspace of the analysis.
### output
This folder contains all figures and tables. Note that the tables are basically extracted parameters from the mixed-model objects.