NONMEM Users Network Archive

Hosted by Cognigen

Code to avoid flip-flop kinetics

From: Paolo Denti <paolo.denti>
Date: Fri, 07 Aug 2009 17:19:16 +0200

Dear NMUsers,
having to deal with the flip-flop kinetics phenomenon, I had a look at
previous posts on the NMusers list.
I found this post particularly enlightening:

Some code was proposed to avoid the flip-flop at population and
individual level. Here's a not-so-brief summary.

This parameterization solves the issue at population level:

However, it does not prevent the phenomenon occurring at individual
level. Vlamidir Piotrovsky proposed the code below, which does solve the
problem at individual level, but makes the interpretation of the results
a bit awkward and introduces correlation among the model parameters. In
particular, variance of ETA3 was greatly increased.

Another approach, suggested by Nick Holford, implements error recovery
using EXIT 1. The code is reported below:
IF (KA.LE.K) EXIT 1 101 ; try again (PREDERR message error code 101)

As far as I understand, this interrupts the computation whenever the
flip-flop occurs and lets NONMEM restart. However, if such an error
arises at initialization, NONMEM does not recover and the run goes no
further. Nick probably experienced something similar, but apparently
received no answer

Does anyone know of a way around this drawback? Or have other code to
deal with flip-flop kinetics?

Thank you in advance,

Paolo Denti, Post-Doctoral Fellow
Division of Clinical Pharmacology
Department of Medicine
University of Cape Town

K45 Old Main Building
Groote Schuur Hospital
Observatory, Cape Town
7925 South Africa
phone: +27 21 404 7719
fax: +27 21 448 1989
email: paolo.denti

Received on Fri Aug 07 2009 - 11:19:16 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to:

Once subscribed, you may contribute to the discussion by emailing: