Vecmatch: Balancing Covariates in Multiple Groups Using Vector Matching Algorithm and Generalized Propensity Scores

Covariate imbalance is a major source of bias in observational studies. This issue arises when confounding variables (e.g., age, sex) are distributed unevenly across compared groups, potentially influencing estimates of between-group differences in other dependent variables. Matching techniques based on propensity scores are widely used to address covariate imbalance and improve the accuracy of causal inferences. These methods work by calculating propensity scores based on imbalanced covariates and then matching observations with the closest propensity scores across compared groups. However, existing matching methods primarily focus on comparisons between at most two groups, and there is currently no widely implemented approach for matching across more than two treatment groups in popular programming languages. In this paper, we present an R implementation of the vector matching algorithm for matching across multiple treatment groups. The implementation includes the core algorithm itself along with several extensions aimed at improving usability and flexibility in applied research. These features include tools for visualizing covariate distributions, functions for estimating generalized propensity scores, and methods for defining rectangular regions of common support. Users can choose among different matching methods and adjust various parameters to improve covariate balance. To support this process, we provide an optimization workflow based on the random search algorithm that identifies parameter combinations yielding the best matching quality and highest percentage of matched samples. In addition, the package includes functions for assessing post-matching quality, offering a comprehensive and flexible framework for robust causal inference in complex observational settings. Keywords: covariate imbalance, bias reduction, vector matching, generalized propensity scores

Authors

Institutions

Publication Details

Journal
bioRxiv (Cold Spring Harbor Laboratory)
Published
2026-11-17
DOI
https://doi.org/10.64898/2026.11.06.764786
Primary Topic
Advanced Causal Inference Techniques
Type
preprint

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Vecmatch: Balancing Covariates in Multiple Groups Using Vector Matching Algorithm and Generalized Propensity Scores

Thomas J. Vogl, Mateusz Franciszek Kołek
bioRxiv (Cold Spring Harbor Laboratory)
Advanced Causal Inference Techniques
preprint

Vecmatch: Balancing Covariates in Multiple Groups Using Vector Matching Algorithm and Generalized Propensity Scores

Thomas J. Vogl, Mateusz Franciszek Kołek
preprint en

Abstract

Covariate imbalance is a major source of bias in observational studies. This issue arises when confounding variables (e.g., age, sex) are distributed unevenly across compared groups, potentially influencing estimates of between-group differences in other dependent variables. Matching techniques based on propensity scores are widely used to address covariate imbalance and improve the accuracy of causal inferences. These methods work by calculating propensity scores based on imbalanced covariates and then matching observations with the closest propensity scores across compared groups. However, existing matching methods primarily focus on comparisons between at most two groups, and there is currently no widely implemented approach for matching across more than two treatment groups in popular programming languages. In this paper, we present an R implementation of the vector matching algorithm for matching across multiple treatment groups. The implementation includes the core algorithm itself along with several extensions aimed at improving usability and flexibility in applied research. These features include tools for visualizing covariate distributions, functions for estimating generalized propensity scores, and methods for defining rectangular regions of common support. Users can choose among different matching methods and adjust various parameters to improve covariate balance. To support this process, we provide an optimization workflow based on the random search algorithm that identifies parameter combinations yielding the best matching quality and highest percentage of matched samples. In addition, the package includes functions for assessing post-matching quality, offering a comprehensive and flexible framework for robust causal inference in complex observational settings. Keywords: covariate imbalance, bias reduction, vector matching, generalized propensity scores

bioRxiv (Cold Spring Harbor Laboratory)
Comprehensive Cancer Center Vienna (AT), Center for Cancer Research (US), Medical University of Vienna (AT)
European Commission
Reduced inequalities
Advanced Causal Inference Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon