Reinforcement Learning Tools for Two-Alternative Forced Choice Tasks
Overview
Tools for building Rescorla-Wagner Models for Two-Alternative Forced Choice tasks, commonly employed in psychological research. Most concepts and ideas within this R package are referenced from Sutton and Barto (2018) <ISBN:9780262039246>. The package allows for the intuitive definition of RL models using simple if-else statements and three basic models built into this R package are referenced from Niv et al. (2012) doi:10.1523/JNEUROSCI.5498-10.2012. Our approach to constructing and evaluating these computational models is informed by the guidelines proposed in Wilson & Collins (2019) doi:10.7554/eLife.49547. Example datasets included with the package are sourced from the work of Mason et al. (2024) doi:10.3758/s13423-023-02415-x.
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 20 (1 internal)includes a package overview page
- Examples that run
- 17%3 run in a plain check · 15 never run
- Exported functions with examples
- 100%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/yuki-961004/binaryrl on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2025-05-13
- Total releases
- 8 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 334 KB / 2 files
- Download size
- 417 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("binaryRL")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.