Cannas, MassimoArpino, Bruno2023-01-312023-01-312019Cannas M, Arpino B. Matching with clustered data: the CMatching package in R. The R Journal. 2019 Jun;11(1):7-21. DOI: 10.32614/rj-2019-0182073-4859http://hdl.handle.net/10230/55482Matching is a well known technique to balance covariates distribution between treated and control units in non-experimental studies. In many fields, clustered data are a very common occurrence in the analysis of observational data and the clustering can add potentially interesting information. Matching algorithms should be adapted to properly exploit the hierarchical structure. In this article we present the CMatching package implementing matching algorithms for clustered data. The package provides functions for obtaining a matched dataset along with estimates of most common parameters of interest and model-based standard errors. A propensity score matching analysis, relating math proficiency with homework completion for students belonging to different schools (based on the NELS-88 data), illustrates in detail the use of the algorithms.application/pdfengThis article and supplementary materials are licensed under a Creative Commons Attribution 4.0 International license.AlgorismesConjunts de dadesDistribució (Teoria de la probabilitat)Matching with clustered data: the CMatching package in Rinfo:eu-repo/semantics/articlehttp://dx.doi.org/10.32614/rj-2019-018info:eu-repo/semantics/openAccess