Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
**To Reproduce Our Analyses and Manuscript From Scratch:** 1. Create the directory structure. Create two directories at the same level within the project on your local computer, one for the analysis scripts (./eskine/scripts), and one for the data (./eskine/data). (In these examples, the project on the local computer is called "eskine" but you can use whatever name you prefer for the project. Same for the analysis scrips directory name. However, as written, the script will assume you're calling the data directory "data".) 2. Within the data directory, create a subdirectory called "orig" (./eskine/data/orig). 3. Download the following files to the ./eskine/scripts directory: - 01_eskine_rep.Rmd - 02_appendix.Rmd - 03_analyze.R - refs.bib - Repfunctionspack6.R 4. Download the Prepared_data.csv data file to ./eskine/data/orig directory (See Data, Coding, and Analysis/Data and Codebook component). 5. After confirming that the data and scripts are stored as described, open 01_eskine_rep.Rmd in RStudio. Head to the setup code chunk and make sure you've installed all required packages. (See our session info at the end of 01_eskine_rep.pdf for information about the R package versions we used.) 6. Click Knit. 7. Depending on the specs of the computer you're using, it may take a number of hours to run from scratch. It will produce 01_eskine_rep.pdf (the manuscript with appendix full of supporting material). It will also produce a set of intermediate, cached information (01_eskine_rep_cache), a lot of figures (Figs), and the R environment (04_eskine_rep.RData). (See our Analysis Output component.) **To Reproduce Our Analyses and Manuscript From Cached Information:** 1. Follow steps 1-4 above. 2. Download the intermediate, cached information and figures folders (see Analysis Output component). Store these two folders in your local computer's project directory (./eskine/01_eskine_rep_cache and ./eskine/Figs). 3. After confirming that the data and scripts are stored as described, open 01_eskine_rep.Rmd in RStudio. Head to the setup code chunk and make sure you've installed all required packages. 4. Click Knit. 5. It will produce 01_eskine_rep.pdf within a few minutes (the manuscript with appendix full of supporting material). **To Go Directly to Data Analysis:** 1. Download the R environment (04_eskine_rep.RData). (See our Analysis Output component.) 2. Two data frames are of particular interest: data_long and data_wide. (For codebook, see Data, Coding, and Analysis/Data and Codebook component. The codebook should explain most variables.)
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.