dvicencio / RiskScorescvd

Cardiovascular Risk Scores
https://dvicencio.github.io/RiskScorescvd/
Other
1 stars 1 forks source link

Score2 Diabetes #6

Closed JauntyJJS closed 4 months ago

JauntyJJS commented 4 months ago

Here are the codes made in relation to SCORE2-Diabetes in relation to https://github.com/dvicencio/RiskScorescvd/issues/5 .

I have also create a test unit on the SCORE2-Diabetes function. For the rounding function, I copied the function round_half_up from the janitor R package https://sfirke.github.io/janitor/reference/round_half_up.html to handle the banker's rounding issue for the round function from base R.