pilotr: Simulate Experimental and Behavioural Data from a Portable Design Specification

Generative simulation of experimental and behavioural data sets from a portable JavaScript Object Notation (JSON) design specification shared with the 'Python' package of the same name. Supports user-specified fixed effect sizes, crossed by-subject and by-item random intercepts and slopes, predictors measured with error, realistic response families (Gaussian, lognormal, shifted lognormal, ex-Gaussian, Bernoulli, Poisson, ordinal and Beta) and simulation-based power and precision-based design analysis, including the Type S and Type M errors of Gelman and Carlin (2014) <doi:10.1177/1745691614551642> and a region of practical equivalence. A shared cross-language random-number generator means that, given the same specification and seed, the R and 'Python' implementations produce identical data wherever they share a maths library, as on Linux, except in a rare Beta case under R 4.6.0 or later that the cross-language vignette describes. Elsewhere, a value that passes through exp(), log() or pow(), whose rounding the IEEE-754 standard does not fix, can differ in its last bits.

Version: 0.4.0
Depends: R (≥ 4.0.0)
Imports: jsonlite, parallel, stats
Suggests: shiny, future, promises, ggplot2 (≥ 3.4.0), lme4, lmerTest, callr, knitr, rmarkdown, testthat (≥ 3.1.5), MASS, spelling, codetools
Published: 2026-11-22
DOI: 10.32614/CRAN.package.pilotr
Author: Pablo Bernabeu ORCID iD [aut, cre]
Maintainer: Pablo Bernabeu <pcbernabeu at gmail.com>
BugReports: https://github.com/pablobernabeu/pilotr/issues
License: MIT + file LICENSE
URL: https://pablobernabeu.github.io/pilotr/r/, https://github.com/pablobernabeu/pilotr
NeedsCompilation: no
Language: en-GB
Citation: pilotr citation info
Materials: README, NEWS
CRAN checks: pilotr results

Documentation:

Reference manual: pilotr.html , pilotr.pdf
Vignettes: Cross-language reproducibility (source, R code)
Getting started with pilotr (source, R code)
Power and design analysis (source, R code)
Precision and ROPE design analysis (source, R code)
Response families (source, R code)
The no-code app (source, R code)
Worked examples (source, R code)

Downloads:

Package source: pilotr_0.4.0.tar.gz
Windows binaries: r-devel: pilotr_0.4.0.zip, r-release: pilotr_0.3.1.zip, r-oldrel: pilotr_0.3.1.zip
macOS binaries: r-release (arm64): pilotr_0.4.0.tgz, r-oldrel (arm64): pilotr_0.4.0.tgz, r-release (x86_64): pilotr_0.4.0.tgz, r-oldrel (x86_64): pilotr_0.4.0.tgz
Old sources: pilotr archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=pilotr to link to this page.