If then statement in markov model
Hi, I'm trying to write an if statement for my Markov model, but don't think I'm doing it correctly. Currently I have the following:
For patients who survive, I would like to have those 75 and below to go to the "Screening Age" arm, and those older than 75 to go to the "Past screening age" arm. When I run my model with the statement I have currently "if(CurrentAge<=75;1;0)", nothing changes in my model (it runs as it did before I included the statement). What is the proper way to ensure people above a certain age go to one branch, and those below go to another branch?