A function inspired by the "Epi" library in R studio used in the working example: Case-control studies in R https://rpubs.com/kaz_yos/case-control1.
A script with a worked example of running the RiskSetSampling function.
Please post a Github issue if you have any questions, comments, or suggestions.