I have C++ code to generate a risk score. However, I don't work with C++. I have a dataset in stata .dta which contain the variables needed for the risk score and my patients.
Is it possible to somehow run this in R? I am not overly familiar with R but have used it before to run regression.
For info this is the C++ code: