This paper contains the data, code, and figures from Anderson, Ling, & Schutz (under review). To use this code, you must first install R and RStudio, along with git.
Analysis code is organized in .qmd and .r files within the repository.
- Data are contained in the
/datafolder. - Custom functions are viewable in the
/libfolder. - Figures from the analyses are viewable in the
/imgfolder. - Analysis scripts are located in the
/scriptsfolder.
Analyses can be replicated using the renv package to restore dependencies and versions from the original analysis in an isolated project folder.
Before this, you must have git installed and configured, as well as R. I also recommend installing RStudio as it will allow you to open .Rproj files.
In a terminal, navigate to the location you would like to write the project files to. Then, clone the repository:
git clone https://github.com/cmndrsn/expressive-deadpan
- Ensure the package
renvis installed for R.- Inside R, run the command
install.packages("renv"). - Once installed, open the project file
expressive-vs-deadpan.Rprojand runrenv::restore()in the console. This will load the required dependencies to reproduce analyses.
- Inside R, run the command
- Once all dependencies are installed, open
expressive-vs-deadpan.Rprojin RStudio. - From the file navigator:
- open
scripts/va-comparison.qmdfrom within the project to reproduce analyses of emotion ratings - open
scripts/va-modeling.Rfrom within the project to reproduce regression analyses
- open