A Collection of R Functions by the Petersen Lab
Overview
A collection of R functions that are widely used by the Petersen Lab. Included are functions for various purposes, including evaluating the accuracy of judgments and predictions, performing scoring of assessments, generating correlation matrices, conversion of data between various types, data management, psychometric evaluation, extensions related to latent variable modeling, various plotting capabilities, and other miscellaneous useful functions. By making the package available, we hope to make our methods reproducible and replicable by others and to help others perform their data processing and analysis methods more easily and efficiently. The codebase is provided in Petersen (2025) doi:10.5281/zenodo.7602890 and on 'CRAN': <doi: 10.32614/CRAN.package.petersenlab>. The package is described in "Principles of Psychological Assessment: With Applied Examples in R" (Petersen, 2024, 2025a) doi:10.1201/9781003357421, doi:10.25820/work.007199, doi:10.5281/zenodo.6466589 and in "Fantasy Football Analytics: Statistics, Prediction, and Empiricism Using R" (Petersen, 2025b).
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 79
- Examples that run
- 84%65 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run · 5 hold no code
- Exported functions with examples
- 97%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/devpsylab/petersenlab on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow
pkgdown site last built 2026-10-09
Show all practicesHide 1 practice
Dependencies
Installing petersenlab adds 81 packages (44 with compiled code, 73 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.0Latest2025-08-18 · current release · diff ↗ ·
added 3 exports
adjust_sourdough_time, lm.beta.lmer, robust_load - RR 4.5.0 released · 2025-04-11
- 1.1.02025-02-03 · diff ↗ ·
added 26 exports
apa, cleanUpNames, d_negBinom, deriv_d_negBinom, deriv_logd_negBinom, error_variance_4PL, error_variance_NB, info_neg_binom_analytical, item_info_NB_analytical, item_info_NB_zero_analytical, kish_ess, log_gen_binom, my_loadings_sorter, posttestOdds, posttestProbability, reliability_4PL, reliability_NB, semPlotInteraction, test_info_4PL, test_info_NB, varsDifferentTypes, whdquantile, wisdomOfCrowd, wquantile, wquantile_generic, wthdquantile - 1.0.02024-04-30
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-04-30
- Total releases
- 3 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 386 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("petersenlab")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.petersenlab.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.