Back to the Top
The following message was posted to: PharmPK
Hi,
In WinNonlin version 4.0/5.0, there's multiple dosing regimen dialog
box for compiled (build-in) models. How can I code multiple dosing
(e.g., bid, tid...) for user defined models?
Thanks,
Xiaofei
Back to the Top
The following message was posted to: PharmPK
Dear Xiaofei,
I've attached a code which you could use, you have to make some
changes however. Maybe it would help if you read a Fortran script to
understand what the code means, afterwards it will be quite easy. The
model is a 4CMT model, but as I've deleted a few lines it would not
run as it is.
In summary: You define the number of doses and the doses and e.g.
infusion times as constants, then WinNonlin will work through all the
doses according the following code.
Best regards
Nele
Model 1
COMM
NPARM 9
NCON 24
FNUM 9
NFUNC 3
NDER 4
PNAMES 'V', ...
END
TEMP
ndose = CON(1)
...
define your vaiables here
T=X
END
START
Z(1) = 0
Z(2) = 0
Z(3) = 0
Z(4) = 0
END
DIFF
j=6
DO i=1 TO ndose
j=j+2
IF T LE CON(j) THEN goto red ; j are the constants which
define your dosing time points, has to be changed
accordingly
ENDIF
NEXT
red:
ndose = i-1
j=6
INPUT = 0
DO i=1 TO ndose
j=j+2
TI = CON(4)
Dose = CON(j-1)
IF T LE TI THEN INP1 = Dose/TI
ELSE INP1=0
ENDIF
DZ(1) = (INPUT - K12*Z(1) + K31*Z(3) - K13*Z(1) - K14*Z(1) +
K41*Z(4))
DZ(2) = (K12*Z(1) - K20*Z(2))
DZ(3) = (K13*Z(1) - K31*Z(3))
DZ(4) = (K14*Z(1) - K41*Z(4))
NEXT
END
FUNCTION 1
F = Z(1)/V
END
EOM
PharmPK Discussion List Archive Index page
Copyright 1995-2010 David W. A. Bourne (david@boomer.org)