knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The files at the URL above will generate the results as found in the preprint. The files hosted at https://github.com/bramzandbelt/irmass are the development versions and may have changed since the preprint was published.
Bram Zandbelt (bramzandbelt@gmail.com)
TBA
The packagae irmass
is one of two research compendia of the research project Cognitive and Neurobiological Mechanisms of Selective Stopping by Bram Zandbelt and Ruben van den Bosch (the other research compendium, cnmss
, can be found here). This project was conducted at the Donders Institute, Radboud University, Nijmegen, the Netherlands, and registered at the Donders Centre for Cognitive Neuroimaging under project number 3017031.05 (DCCN PI: Roshan Cools).
This research compendium contains all data, code, and text associated with the above-mentioned publication and is organized as follows (showing directories in a tree-like format with a maximum depth of two levels):
. ├── R ├── analysis │ ├── bash │ └── notebooks_and_scripts ├── data │ └── derivatives ├── documents │ ├── content │ └── context ├── figures │ ├── 01_preprocess_log_files │ ├── 02_assess_task_performance_criteria │ ├── 03_individual_analysis_effect_ssd_on_prob_responding_given_stopsignal │ ├── 04_individual_analysis_rt_difference_nosignal_stoprespond │ ├── 05_individual_analysis_effect_ssd_on_stoprespond_rt │ ├── 07_group_analysis_rt_difference_nosignal_stoprespond │ ├── 08_group_analysis_effect_ssd_on_stoprespond_rt │ └── 09_exploration_support_for_hypotheses_under_different_bayes_factor_criteria ├── man ├── packrat │ ├── lib │ ├── lib-R │ ├── lib-ext │ └── src └── reports
The R/
directory contains:
plot_functions.R
).The analysis/
directory contains:
notebooks_and_scripts/
directory), numbered in the order in which they should be run;bash/
directory).The data/
directory contains:
derivatives/
directory), organized by notebook name.01_preprocess_log_files
(documents/content/01_preprocess_log_files/
), the notebooks (analysis/*.Rmd
), and static reports (reports/
)simulations/
directory)N.B. The raw data is not shared, because it contains information about date and time on which the session took place, potentially allowing for identification of participants (e.g. by participants themselves). However, the raw data are archived at the Donders Center for Cognitive Neuroimaging under project number 3017031.05
The documents/
directory contains:
content/
directory), such as codebooks;context/
directory), such as ethics documents, preregistration, and task instructions;manuscript/
directory).The figures/
directory contains:
The man/
directory contains:
roxygen2
.The packrat/
directory contains:
The reports/
directory contains:
Finally, this research compendium is associated with a number of online objects, including:
| object | archived version | development version | | ------ | -------------------------------- | -------------------------------- | | preregistration | https://osf.io/mq64z/ | NA | | stimulus presentation code | https://doi.org/10.5281/zenodo.3243799 | github.com/bramzandbelt/StPy |
In this experiment, we used the following StPy stimulus presentation configuration files (under config/
in StPy
):
expt_3017031-05-Expt02-A.yaml
expt_3017031-05-Expt02-B.yaml
This repository is organized as an R package. The R package structure was used to help manage dependencies, to take advantage of continuous integration for automated code testing and documentation, and to be able to follow a standard format for file organization. The package irmass
depends on other R packages and non-R programs, which are listed below under Dependencies.
To download the package source as you see it on GitHub, for offline browsing, use this line at the shell prompt (assuming you have Git installed on your computer):
Install irmass
package from Github:
devtools::install_github("bramzandbelt/irmass")
git clone https://github.com/bramzandbelt/irmass.git
Once the download is complete, open the file irmass.Rproj
in RStudio to begin working with the package and compendium files. To reproduce all analyses, run the shell script analysis/bash/run_all_analyses.sh
. This will run all RMarkdown notebooks in correct order. It may take several hours to complete.
Manuscript: CC-BY-4.0 http://creativecommons.org/licenses/by/4.0/
Code: MIT http://opensource.org/licenses/MIT, year: 2019, copyright holder: Bram B. Zandbelt
Below is the output of sessionInfo()
, showing version information about R, the OS, and attached or loaded packages:
devtools::session_info()
Packrat takes care of dependencies in R. In addition, Stan (we used v.2.18.1) is needed.
This research project was funded through a James McDonnell Scholar Award (grant number 220020328) to Roshan Cools. We thank Roshan Cools (RC) for financial support and constructive feedback and Alexandra Sebastian (AS) for providing statistical parametric maps for the purpose of sample size estimation. We thank Ben Marwick for inspiration on how to create, organize, and describe research compendia.
We specify the contribution of all people involved in the research (contributing non-authors included), according to the Contributor Role Taxonomy.
| | BBZ | RvdB | RC | | ---------------------------- | --- | ---- | --- | | Conceptualization | X | - | - | | Methodology | X | - | - | | Software | X | - | - | | Validation | X | - | - | | Formal analysis | X | - | - | | Investigation | - | X | - | | Resources | X | - | - | | Data curation | X | - | - | | Writing - original draft | X | - | - | | Writing - review and editing | X | X | - | | Visualization | X | - | - | | Supervision | X | - | - | | Project administration | - | X | - | | Funding acquisition | - | - | X |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.