RE: simultaneous PK/PD
Hauke, maybe this would work
....
IF (M1H2.EQ.1.AND.C1.GT.0) THEN
IPRE = LOG(C1)
IRES = DV-IPRE
W = EPS(1)*THETA(8)
Y = IPRE+W
ENDIF
....
Repeat for M1H2=2
Brendan
Quoted reply history
From: [email protected] [mailto:[email protected]] On
Behalf Of Hauke Rühs
Sent: Wednesday, June 23, 2010 8:54 AM
To: [email protected]
Subject: [NMusers] simultaneous PK/PD
Dear NMusers,
I want to combine my sequential PK and PD model to one simultaneous model. In
both models I used an exponential error model (log-transformation). When I
write the model as follows, NONMEM gives me this error message:
326 RANDOM VARIABLE IS DEFINED IN A NESTED IF STRUCTURE.
Leaving out the condition C.GT.0 will also lead to errors. Is there another way
to write this?
Thanks
Hauke
$ERROR
C1=(A(1)/V1)
C3=A(3)
IPRE=0
IF (M1H2.EQ.1) THEN
IF (C1.GT.0) IPRE = LOG(C1)
IRES = DV-IPRE
W = EPS(1)*THETA(8)
Y = IPRE+W
ENDIF
IF (M1H2.EQ.2) THEN
IF (C3.GT.0) IPRE = LOG(C3)
IRES = DV-IPRE
W = EPS(1)*THETA(9)
Y = IPRE+W
ENDIF
DEL = 0
IF(W.EQ.0) DEL = 1
IWRE = IRES/(W+DEL)
$SIGMA
1 FIX
-----------------------------
Hauke Rühs
Apotheker
Pharmazeutisches Institut
- Klinische Pharmazie -
An der Immenburg 4
53121 Bonn
Tel: + 49-(0)228 73-5781
Fax: + 49-(0)228 73-9757
http://www.klinische-pharmazie.info/