I am an intern and my boss wants me to make a decision tree that results in the likelihood of someone being / becoming diabetic. I am extremely new to R and currently the only one that I work with that is using R... I need the decision tree to be based on the following criteria:
if(A1CValue >= 8)
{print('highly likely')}
else if(BSValue >= 140)
{print("highly likely")}
else if(DBPValue >= 80)
{print("highly likely")}
else if(SBPValue >= 140)
{print("highly likely")}
else
{print("less likely")
}
Can anyone assist me in the coding to put this into a decision tree? Thanks in advance, Laura