Re: [NMusers] Generating random numbers within a range

2016-11-06 Thread Devin Pastoor
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 ...

[NMusers] Generating random numbers within a range

2016-11-06 Thread Paul Hutson
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