R Packages

Many of the methods that matter most for rigorous research, such as planning sample size so that effects are estimated accurately, forming confidence intervals for standardized effect sizes, estimating reliability with an honest statement of its uncertainty, and testing complex indirect effects, are not available in standard statistical software, and methods that are not implemented are rarely used in practice. I therefore develop R packages that turn methodological advances, many from my own research and collaborations, into tools that researchers can use in their own work.

The packages form a suite organized around the stages of a study. DMAR, my flagship package, is the comprehensive core, carrying a study from its design, through the measurement of its constructs, to the analysis of its data. Specialized packages extend it: SIEVER for the evaluation of scale items in surveys and other instruments, BUCSS for planning sample size from published effects, POEMED for mediation analysis with many mediators, SMSD for sequential designs whose sample size cannot be fixed in advance, AMCP for the data sets of Designing Experiments and Analyzing Data, and NDPalette for graphics. All are free and open source, and their source code is on GitHub.


DMAR: Design, Measurement, and Analysis in R

DMAR (pronounced dee-mar) is my flagship package, aligned with my research program and methodological developments. It is a comprehensive package for the full arc of an empirical study, from its design, through the measurement of its constructs, to the analysis of its data. Its interfaces, defaults, and documentation are consistent across the package and grounded in the methodological literature, so that advanced and nonstandard methods are straightforward to use while remaining methodologically sound.

  • Design. Sample size planning for accuracy in parameter estimation (AIPE) and for statistical power, including composite power for studies whose conclusions require several results to hold at once; minimum risk, sequential, and equivalence frameworks; sample size planning for structural equation models and longitudinal designs; and design effects for clustered samples.
  • Measurement. Reliability and agreement, from coefficient omega with confidence intervals to intraclass correlations for raters; confirmatory factor analysis; convergent and discriminant validity; and measurement invariance, all approached from a psychometric perspective.
  • Analysis. Effect sizes with confidence intervals; mediation analysis, from the simple mediation model with bootstrap intervals to likelihood ratio tests of arbitrary indirect effects by model-based constrained optimization (MBCO), with multiple groups and moderated mediation; equivalence and noninferiority tests; meta-analysis; and repeated measures, multivariate, ANOVA, and ANCOVA designs, with inference grounded in model comparison throughout.

Although many of its methods were developed for human-centered research, they apply broadly across the empirical sciences.

Version 1.1.0 (November 2026) · CRAN · Documentation · GitHub

Cite as: Kelley, K. (2026). DMAR: Design, measurement, and analysis in R (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.DMAR


SIEVER: Scale Item Evaluation and Validation Environment in R

An environment for evaluating and validating the items of psychological and behavioral scales.

Forthcoming


BUCSS: Bias and Uncertainty Corrected Sample Size

BUCSS (pronounced bucks) plans the sample size of a new study, such as a replication, from an effect reported in a previous study, correcting for publication bias and for sampling uncertainty in the reported effect so that the new study has the statistical power it is intended to have.

Version 2.0.0 (October 2026) · CRAN · Documentation · GitHub

Cite as: Kelley, K., Anderson, S. F., & Maxwell, S. E. (2026). BUCSS: Bias and uncertainty corrected sample size (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.BUCSS
Methods:
Anderson, S. F., Kelley, K., & Maxwell, S. E. (2017). Sample size planning for more accurate statistical power: A method adjusting sample effect sizes for publication bias and uncertainty. Psychological Science, 28, 1547–1562.
Anderson, S. F., & Kelley, K. (2024). Sample size planning for replication studies: The devil is in the design. Psychological Methods, 29, 844–867.


POEMED: Power Enhancement for High-Dimensional Mediation Analysis

POEMED (pronounced poe-med) provides global tests for mediation analysis with many mediators whose indirect effects may differ in size or sign, for continuous, binary, and count outcomes. The power enhancement approach augments a test of the total indirect effect with a component sensitive to individual mediators, so that active mediators are detected even when their indirect effects cancel. The package also identifies which mediators are active, with familywise error rate or false discovery rate control.

Version 1.0.1 (November 2026) · CRAN · Documentation · GitHub

Cite as: Yu, X., & Kelley, K. (2026). POEMED: Power enhancement for high-dimensional mediation analysis (Version 1.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.POEMED
Method: Yu, X., & Kelley, K. (in press). Power enhancement in high-dimensional heterogeneous mediation analysis. Journal of the American Statistical Association. https://doi.org/10.1080/01621459.2026.2739445


SMSD: Sequential Methods for Study Design

Procedures for studies whose sample size cannot be fixed in advance because the population values that a sample size formula requires are unknown. SMSD implements accuracy in parameter estimation and minimum risk point estimation procedures that collect data in stages and decide, based on the data observed so far, whether to continue sampling, along with a budget-constrained sequential procedure for comparing several populations.

Version 1.0.0 (October 2026) · GitHub

Cite as: Kelley, K., Darku, F. B., & Chattopadhyay, B. (2026). SMSD: Sequential methods for study design (Version 1.0.0) [Computer software]. https://github.com/yelleKneK/SMSD
Methods: Chattopadhyay & Kelley (2016, 2017); Kelley, Darku, & Chattopadhyay (2018, 2019); Chattopadhyay, Bandyopadhyay, Kelley, & Padalunkal (2025).


AMCP: A Model Comparison Perspective

The data sets used in Designing Experiments and Analyzing Data: A Model Comparison Perspective (4th ed., 2027), so that analyses from the book can be reproduced in R. Additional materials are on the book’s companion website, DesigningExperiments.com.

Version 2.0.0 (July 2026) · CRAN · GitHub

Cite as: Kelley, K., Maxwell, S. E., & Delaney, H. D. (2026). AMCP: A model comparison perspective (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.AMCP
Book: Maxwell, S. E., Delaney, H. D., & Kelley, K. (2027). Designing experiments and analyzing data: A model comparison perspective (4th ed.). Routledge.


NDPalette: Notre Dame Color Palettes for R

Color palettes that approximate the University of Notre Dame brand colors, with ggplot2 color and fill scales, an ordering that stays legible on a white background, ramps for continuous quantities such as correlations and factor loadings, and a colorblind-friendly ordering. NDPalette is a personal project and is not affiliated with the University of Notre Dame.

Version 1.0.0 (June 2026) · CRAN · GitHub

Cite as: Kelley, K. (2026). NDPalette: Notre Dame color palettes for R (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.NDPalette


MBESS

MBESS (pronounced em-bes; originally, Methods for the Behavioral, Educational, and Social Sciences) provides effect sizes, confidence intervals for effect sizes (including standardized effect sizes), sample size planning from the accuracy in parameter estimation and power analytic perspectives, and mediation analysis. MBESS has been superseded by DMAR; it remains on CRAN for existing work, and new work should use DMAR.

MBESS was first released on CRAN on May 6, 2006, and took its current name with Version 2.0.0 (November 2008). Versions 3.0.0 through 3.3.3 (2010–2016) were coauthored with my former graduate student Keke (Brian) Lai. Version 4.0.0 was released in February 2016, and Version 5.0.0 in June 2026.

Version 5.0.1 (June 2026) · CRAN · GitHub

Cite the version used, the articles in which MBESS was peer reviewed, and, when a function implements a method from another article, that article:
Kelley, K. (2026). MBESS (Version 5.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.MBESS
Kelley, K. (2007a). Methods for the Behavioral, Educational, and Social Sciences: An R package. Behavior Research Methods, 39, 979–984.
Kelley, K. (2007b). Confidence intervals for standardized effect sizes: Theory, application, and implementation. Journal of Statistical Software, 20(8), 1–24.

Scroll to Top