DMAR: Design, Measurement, and Analysis in R (DMAR)

Methods for design, measurement, and analysis, with the aim of being user friendly yet methodologically sound. 'DMAR' (pronounced "Dee-Mar") implements them with interfaces, defaults, and documentation that are consistent across the package and grounded in the methodological literature. The package emphasizes effect size estimation with confidence intervals; sample size planning through accuracy in parameter estimation (AIPE) and power analysis (including composite power for designs whose conclusions require several results to hold at once), with minimum risk, sequential, and equivalence frameworks; reliability, agreement, and measurement more broadly, from coefficient omega with confidence intervals to measurement invariance; factor analysis and structural equation modeling, in which constructs, latent variables measured by multiple indicators, are modeled directly, with confirmatory factor analysis, convergent and discriminant validity, and sample size planning for structural equation models; 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 the probing of moderated mediation; equivalence and noninferiority testing; meta-analysis; repeated measures, multivariate, ANOVA, and ANCOVA designs; and inference grounded in model comparison throughout. Measurement is approached from a psychometric perspective, and although many of the methods grew up in human-centered research, they apply broadly across the empirical sciences. Much of what is implemented traces to the author's methodological work, interests, and collaborations. 'DMAR' is a more general and greatly expanded reimagining of the 'MBESS' package (Kelley, 2007a, <doi:10.18637/jss.v020.i08>; 2007b, <doi:10.3758/BF03192993>), which has been on CRAN for more than two decades and remains available there. Most functions accept either raw data or the summary statistics typically reported in published articles, so an analysis can be reproduced from a paper without the original data, which is useful both for extending a published analysis and for meta-analytic work. Most estimation, inference, and planning functions return one consistently formatted data frame that composes with the broader R ecosystem; the regression functions for incomplete data and a few others return a list suited to their task instead. Most effect sizes are reported with a confidence interval, either by the function that estimates them or by a companion interval function. The interfaces and documentation are written for researchers who have data and a question but who are not R experts; for methodologists the package also provides specialized procedures, such as critical values of the studentized maximum modulus, Dunnett, and Bryant-Paulson distributions computed from the distributions themselves rather than read from printed tables.

Version: 1.1.0
Depends: R (≥ 4.0.0)
Imports: grDevices, MASS, generics, parallel, stats, utils, withr
Suggests: boot, car, ggplot2 (≥ 3.4.0), ggrain, knitr, lavaan (≥ 0.7-3), lme4, lmerTest, mice (≥ 3.18.0), nlme, OpenMx, patchwork, R.rsp, reformulas, rmarkdown, testthat (≥ 3.2.0)
Published: 2026-11-15
DOI: 10.32614/CRAN.package.DMAR
Author: Ken Kelley ORCID iD [aut, cre]
Maintainer: Ken Kelley <kkelley at nd.edu>
BugReports: https://github.com/yelleKneK/DMAR/issues
License: GPL (≥ 3)
URL: https://kenkelley.org, https://yelleknek.github.io/DMAR/, https://github.com/yelleKneK/DMAR
NeedsCompilation: no
Language: en-US
Citation: DMAR citation info
Materials: README, NEWS
CRAN checks: DMAR results

Documentation:

Reference manual: DMAR.html , DMAR.pdf
Vignettes: Introduction to DMAR (source)
Power for Factorial ANCOVA: A 2 x 4 x 3 Design Worked in Full (source)
Classical Tests as Path Models in lavaan (source)
Simultaneous Comparison of Adjusted Means in ANCOVA With DMAR (source)
Composite Power for Factorial ANCOVA: Planning Simple Effects, an Interaction, and a Moderator (source)
Composite Sample Size Planning for SEM: A Simple Model and a Latent Growth Curve (source)
Reproducing the Textbook Critical-Value Tables (source)
Reading DMAR Result Tables (source)
Visualizing Effect Sizes and Distributions With DMAR (source)
How DMAR's Functions Fit Together: A Deep Dive (source)
Moving From MBESS to DMAR: A Migration Guide and a Tour of the New Methods (source)
Missing Data: What the Missing Values Cost (source)
Maximum Likelihood Multiple Regression and Multivariate Regression (source)
Nonlinear Growth Curves and the Meaning of Their Parameters (source)
Power and Precision for the One-Way ANOVA: A Model Comparison Perspective (source)
Heterogeneity of Regression in the Pygmalion Data (source)
Reliability in DMAR: Choosing the Coefficient, Choosing the Interval (source)
SEM Fit and Model Comparison: Definitions, Uncertainty, and Use (source)
Sums of Squares in Nonorthogonal Designs (source)
The Teacher Expectancy Meta-Analysis: Reproducing Raudenbush (1984) (source)
Weighted Kappa: Cohen's 1968 Illustration, Worked in Full (source)

Downloads:

Package source: DMAR_1.1.0.tar.gz
Windows binaries: r-devel: DMAR_1.0.0.zip, r-release: DMAR_1.1.0.zip, r-oldrel: DMAR_1.0.0.zip
macOS binaries: r-release (arm64): DMAR_1.1.0.tgz, r-oldrel (arm64): DMAR_1.1.0.tgz, r-release (x86_64): DMAR_1.0.0.tgz, r-oldrel (x86_64): DMAR_1.0.0.tgz
Old sources: DMAR archive

Linking:

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