Hi Paul,
You could probably just resent your FF at each dosing event (amt gt 0)
based on the
ADHERENCE = 0.4
IF (AMT.GT.0) THEN
CALL RANDOM(2, R) # second random number so can access uniform
distribution
IF (R.LT.ADHERENCE) THEN
FF = 0
ELSE
FF = 1
ENDIF
ENDIF
...
I have read the RANDOM page in guide VIII and LuAnn's suggestions from 2011,
and still have questions on how to generate random numbers within a range.
I'd like to simulate the effect of erratic, random (not Markov chain) lapses in
adherence. I'm using the model of Kim for simvastatin (also