Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
Auto-analyse.txt -------------------------------------- **If you don't know R, read this! It contains instructions for how to run the code.** Following these instructions will run the scripts necessary to populate the data, plots, and stats folders. You can then compare these with what we have uploaded to the other OSF components to see if they replicate. You can also use them in your own analyses using other software. If you just want to see what we generated OR if you just want to download our data and analyse it in another program, you can access that information in other components of this OSF project. You do not need to run this R code to explore our data or check our results. ---------- Analysis.zip ------- **FOLDERS** 'data -> anonymised' contains anon.csv which is all you need to run the analysis code through. 'data -> manipulated', 'plots', and 'stats' are empty folders which are referred to by the R scripts. As you run the scripts you will see items populate in these folders. If you delete the folders you will experience errors when trying to run the R scripts, as it expects them to exist. The contents of data, plots, and stats are available in the other components of this OSF project. **FILES** General note: all code uses relative paths and the here() function to import and export files. You shouldn't need to mess about with file names and locations to run this code. If you do move files around you will probably encounter errors. 00-analysis.Rproj - R project which all the scripts are housed in 00-run-all-code.R - runs all code needed to populate the data, plots, and stats folders 01-compile-raw-data.R - WILL NOT RUN - this was used on raw, non-anonymised data to compile it into one file and is provided for context 02.1-anonymiser.R - WILL NOT RUN - this was used on raw, non-anonymised data to anonymise it and is provided for context 02.2-tidier.R - used to turn anon.csv into something more user-friendly ("anon_clean.csv") 03-break-duration-calc.R - used to generate a csv file containing participants' break durations in seconds 04-identify-problematic-participants.R - used to look at participants' responses throughout the cognitive task battery and identify any who met the pre-determined exclusion criteria 05-AXCPT-analysis.R - used to calculate AX-CPT BIS scores, tidy, explore, analyse, and plot data for hypothesis (b) 06-BRUMS.R - used to calculate BRUMS scores, tidy, explore, analyse, and plot data for hypothesis (a) and exploratory analyses 99-install-required-packages.R - can be used to see and install necessary packages. You will not be able to reproduce our analysis without the packages in this script installed. If you are using specialist packages or don't want packages to be updated, do not run this code without checking it first. ---------- Version info ---------------- All code runs as of 10th August 2022 RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36 platform: x86_64-w64-mingw32 arch: x86_64 os: mingw32 crt: ucrt system: x86_64, mingw32 status: major: 4 minor: 2.1 year: 2022 month: 06 day: 23 svn rev: 82513 language: R version.string: R version 4.2.1 (2022-06-23 ucrt) nickname: Funny-Looking Kid
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.