R package for optimal matching of cases to controls using network flow theory.
library(devtools)
# install_github("mkanai/ccmatch")
install.packages("ccmatch", repos = c('https://mkanai.r-universe.dev', 'https://cloud.r-project.org'))
> library(ccmatch)
> ccmatch(x.case, x.control, n = 3)
std::priority_queue for perfomance?