How to add an additional clearance

I wonder how can I add an additional clearance which happened after certain time (eg, after 500h post dose) in the phoenix model. I tried to use " if (t>500) … else …" but it always tell me “variable ‘else’ undifined”. Thanks!

Hong, If and Else statements aren’t going to work. Take a look around this forum and at the Phoenix Modeling Language Reference Guide for references to Sequence and Sleep statements. Chapter 3 Phoenix Modeling Language . Modeling discontinuous events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Sequence and sleep statements: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Time event switching in PML versus WinNonlin ASCII models . . . . . 42 One-compartment model with sleep statement . . . . . . . . . . . . . . . . . . . 64 Simon.

Thanks, Simon I have a two compartment model with iv bolus and first-order eliminination from central compartment, and after Tlag, addidtional clearance added to the central compartment. so I wrote the PK model as below. however, this model didn’t work. Is there anything wrong? Thanks! stparm ( Cl = tvCL Cl2 = tvCL2 # Distribution clearance CL3 = tvCL3exp(nCL3) #Additional clearance V = tvV #central compartment volume V2 = tvV2 #peripheral compartment volume TT= tvTTexp(nTT) #Tlag ) fixef ( tvCL = c(0, 0.0047338,) tvCL2 = c (0, 0.0160724,) tvCL3 = c(0, 0.03, ) tvV = c (0, 0.322288,) tvV2 = c(0, 0.556795,) tvTT = c(0, 700, ) ) ranef ( diag(nCL3, nTT) = c( 1, 1) ) # model block deriv(A1 = - (Cl * C)- (Cl2 * (C - C2))- G) deriv(A2 = (Cl2 * (C - C2))) C = A1 / V C2= A2 / V2 dosepoint(A1) double (G) sequence { sleep (t

Hong, do you have the full code? Are you missing the first par of the model, namely; [size=4]test(){[/size] If you make sure the first “general” tab is selected then you will see the error messages identified in the code; Simon.

Hi, Simon, Yes, I missed the “test(){” when I paste the code here. I didn’t see any error message. and the model can be run. but from the result, it looked like just 2-cm model, the additional clearance" didn’t work,