Re: simultaneous PK/PD
Hi Hauke,
You can easily re-write the code to be non-nested, e.g.
IF (M1H2.EQ.1.AND. C1.GT.0 ) IPRE = LOG(C1)
IF (M1H2.EQ.1) THEN
IRES = DV-IPRE
W = EPS(1)*THETA(8)
Y = IPRE+W
ENDIF
Regards,
Katya
Ekaterina Gibiansky, Ph.D.
CEO&CSO, QuantPharm LLC
Web: www.quantpharm.com
Email: EGibiansky at quantpharm.com
Tel: (301)-717-7032
Quoted reply history
On 6/23/2010 8:54 AM, Hauke Rühs wrote:
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
www.klinische-pharmazie.info
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2956 - Release Date: 06/22/10 14:36:00
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2956 - Release Date: 06/22/10
14:36:00