Materials provide here is covering the method and code that was used to conduct a case-control matching with replacement and randomisation at the population level.
The abstract of this study is accessible: https://ijpds.org/article/view/1539?articlesBySameAuthorPage=5