Skip to contents

Package Overview

The petersenlab package contains a collection R functions that are widely used by the Petersen Lab (the Developmental Psychopathology Lab at the University of Iowa). 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 package website is here: The source code for the package is here:

Installing the Package

To install the latest stable release from CRAN, run the following in R:


To install the latest development version from GitHub, run the following in R:


Package Functions

A list of the functions included in the package is here:

Citing the Package

To obtain the citation for the petersenlab package, run citation("petersenlab"); the citation is:

Petersen, I. T. (2024). petersenlab: A collection of R functions by the Petersen Lab. R package version 1.0.3.,

A BibTeX entry for LaTeX users is:

  author = {Isaac T. Petersen},
  title = {{petersenlab}: A collection of {R} functions by the {Petersen Lab}},
  url = {},
  doi = {10.32614/CRAN.package.petersenlab},
  version = {1.0.3},
  year = {2024}


License: MIT

This work is licensed under The MIT License.

MIT License

Developmental Psychopathology Lab