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 based on Propensity Scores or the Mahalanobis Distance for two to four groups. It also includes the option to match data of a 2x2 design. In addition, MAGMA includes a framework for evaluating the post-matching balance. The package includes functions for the matching process and matching reporting. We provide a General tutorial on MAGMA and a tutorial for Mahalanobis Distance Matching as vignettes. More information on MAGMA can be found in Feuchter, M. D., Urban, J., Scherrer V., Breit, M. L., and Preckel F. (2022) < https://osf.io/p47nc/>.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("MAGMA.R")

1.1 by Julian Urban, 3 months ago


Report a bug at https://github.com/JulianUrban/MAGMA/issues


Browse source code at https://github.com/cran/MAGMA.R


Authors: Julian Urban [aut, cre] , Markus D. Feuchter [aut] , Vsevolod Scherrer [aut] , Moritz L. Breit [aut] , Franzis Preckel [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports parallel, doParallel, foreach, metafor, robumeta, psych, ggplot2, janitor, flextable, overlapping, purrr, tibble, dplyr, tidyselect, stats, rlang, stddiff

Depends on tidyverse

Suggests knitr, rmarkdown


See at CRAN