MAGMA.R: MAny-Group MAtching

Balancing quasi-experimental field research for effects of covariates is fundamental for drawing causal inference. Propensity Score Matching deals with this issue but current techniques are restricted to binary treatment variables. Moreover, they provide several solutions without providing a comprehensive framework on choosing the best model. The 'MAGMA.R' -package addresses these restrictions by offering nearest neighbor matching for two to four groups. It also includes the option to match data of a 2x2 design. In addition, 'MAGMA.R' includes a framework for evaluating the post-matching balance. The package includes functions for the matching process and matching reporting. We provide a tutorial on 'MAGMA.R' as vignette. More information on 'MAGMA.R' can be found in Feuchter, M. D., Urban, J., Scherrer V., Breit, M. L., and Preckel F. (2022) <>.

Version: 1.0.1
Depends: R (≥ 4.2.0), tidyverse (≥ 2.0.0)
Imports: parallel (≥ 4.2.0), doParallel (≥ 1.0.17), foreach (≥ 1.5.2), metafor (≥ 4.4-0), robumeta (≥ 2.1), psych (≥ 2.3.9), ggplot2 (≥ 3.4.4), janitor (≥ 2.2.0), flextable (≥ 0.9.4) , overlapping (≥ 2.1), purrr (≥ 1.0.1), tibble (≥ 3.2.1), dplyr (≥ 1.1.4), tidyselect (≥ 1.2.0), stats (≥ 4.2.0), rlang (≥ 1.1.1)
Suggests: knitr, rmarkdown
Published: 2024-03-19
Author: Julian Urban [aut, cre], Markus D. Feuchter [aut], Vsevolod Scherrer [aut], Moritz L. Breit [aut], Franzis Preckel [aut]
Maintainer: Julian Urban <urbanj at>
License: GPL-3
NeedsCompilation: no
CRAN checks: MAGMA.R results


Reference manual: MAGMA.R.pdf
Vignettes: Turn up the Heat! A Tutorial for the MAGMA R-package.


Package source: MAGMA.R_1.0.1.tar.gz
Windows binaries: r-prerel:, r-release:, r-oldrel:
macOS binaries: r-prerel (arm64): MAGMA.R_1.0.1.tgz, r-release (arm64): MAGMA.R_1.0.1.tgz, r-oldrel (arm64): MAGMA.R_1.0.1.tgz, r-prerel (x86_64): MAGMA.R_1.0.1.tgz, r-release (x86_64): MAGMA.R_1.0.1.tgz
Old sources: MAGMA.R archive


Please use the canonical form to link to this page.