Literature DB >> 31044558

NONMEM Tutorial Part II: Estimation Methods and Advanced Examples.

Robert J Bauer1.   

Abstract

In this second tutorial on NONMEM, examples of typical PK/PD modeling problems that occur in the pharmaceutical field will be presented, and which the reader can utilize as a template for his own modeling endeavors. Each of the problems presented are challenging in some way, and the logic behind setting up each problem is discussed. Logical concepts of the problem itself as well as the technical aspect of how to set it up in NONMEM are described and demonstrated. The concepts behind the various estimation algorithms will first be described to allow the user a better understanding of how to use them. This article is protected by copyright. All rights reserved.
© 2019. ICON Clinical Research LLC. CPT: Pharmacometrics & Systems Pharmacology published by Wiley Periodicals, Inc. on behalf of the American Society for Clinical Pharmacology & Therapeutics.

Entities:  

Keywords:  zzm321990NONMEMzzm321990®zzm321990; biostatistics; nonlinear models; pharmacometrics; software; therapeutics

Year:  2019        PMID: 31044558      PMCID: PMC6709422          DOI: 10.1002/psp4.12422

Source DB:  PubMed          Journal:  CPT Pharmacometrics Syst Pharmacol        ISSN: 2163-8306


These estimation methods include:1 The first‐order (FO) method (guide II1) The FO conditional estimation (FOCE)/Laplace method (guide VII1) Various additional methods in NONMEM are (intro71): Monte Carlo importance sampling (IMP) expectation maximization (EM) Markov Chain Monte Carlo (MCMC) stochastic approximation expectation maximization (SAEM) Iterative two stage (ITS). Approximate EM method MCMC Bayesian analysis The examples consist of the following: Example 1: Pharmacokinetic (PK) model with covariates using IMP, SAEM, and Bayesian analysis methods Example 2: Modeling data that are below the limit of quantitation (LOQ) Example 3: Modeling pharmacokinetic categorical response data Example 4: Using ordinary differential equation (ODE) solvers to model a basic target‐mediated drug disposition model Example 5: Analyzing data modeled with multiple levels of mixed effects Example 6: Modeling a mixture of subpopulations of parameters Example 7: Modeling periodically collected urine samples

Basic Principles and History of the Various Methods

Goal of nonlinear mixed effects methods

The common goal of FO and EM methods is to determine the set of fixed effects THETAs, OMEGAs, and SIGMAs that best fit the population data, considering all possible values of individual parameters or ETAs (random effects). For each subject, a linearized, often weighted, extended least‐squares assessment of the contributions of within‐subject and between‐subject variability is made (FO), or an integration of the conditional density over all values of ETAs must be performed, for a given set of THETAs, OMEGAs, and SIGMAs (FO/FOCE/Laplace and EM methods). This integration is computationally difficult to do, and the various methods solve this problem in different ways.

First Method Was Fo (1970s2 ; Guide II1)

The FO was the first method used in population PK analysis that could simultaneously discern the variability of measured levels of drug or drug response (residual variance) within a subject and the variability of PK/pharmacodynamic (PD) parameters between subjects (intersubject variance). The FO method could determine how population PK/PD parameters related to patient characteristics, even when there were few data points per subject. FO analysis could be accomplished using the computing power and memory that was available at the time. The FO method optimizes an objective function with a linearized projection of intersubject and intrasubject effects without explicitly evaluating the integral of the joint density for each subject and hence evaluates very quickly.

Foce (1992) Method (Guide VII1)

Although the FO method was fast, it was very approximate. Sometimes inaccurate assessments occurred if residual error and/or intersubject variability were large. The FOCE, although also an approximate method, was more accurate for a larger variety of problems. In FOCE mixed effects modeling, an integral over all possible individual parameter values (ETAs, or random effects) is taken into consideration for each subject's joint density of observed data and ETAs when determining the best fixed effects (THETAs, OMEGAs, and SIGMAs). As mentioned previously, this integration is computationally expensive. To alleviate the computational expense, the FOCE evaluates the mode of the joint density (most likely values of ETAs) and the first order approximation of variances of ETAs. An approximate integral using the Gaussian function centered at the mode of the joint density with the approximate variance is used as a linear approximation of the integral of the joint density with respect to ETAs and can be easily calculated. These integrations must be done for the data of each individual separately, and so FOCE takes longer to evaluate than the FO method. Thus, unlike FO, which linearizes the intersubject and within‐subject variability, FOCE evaluates the intersubject effect accurately while linearizing the within‐subject variability with its Gaussian function approximation.

Second‐Order Conditional Estimation (Laplace, 1992) Method (Guide VII1)

The Laplace method is the same as FOCE except that it uses a second derivative assessment of the variance of the joint density with respect to the ETAs. The Laplace method is used when nonnormal densities are used to model some of the observed data or the prediction model imparts a high degree of nonlinearity to the joint density of the individual parameters.

Monte Carlo Em Methods (2000s3, 4, 5)

These are exact methods that are able to analyze complex PK/PD problems with a greater incidence of success than FOCE. As in FOCE, the integral over all possible individual parameter values (ETAs, or random effects) is taken into consideration when determining the best fixed effects (THETAs, OMEGAs, and SIGMAs). The EM algorithms, however, perform a Monte Carlo integration to explore the entire ETA space and provide a more accurate (but more stochastic) assessment of the integral of the joint density. This is called the “expectation step.” Although the Monte Carlo expectation step can be computationally expensive, and/or highly stochastic, the update of the fixed effect parameters can be efficiently carried out with single‐step algorithms if the statistical model is structured in a certain way (PHI/MU modeling). This update of the fixed effects is called the “maximization step.” The Monte Carlo EM can be more accurate than FOCE for sparse data,3, 4 although less precise than FOCE because the results have stochastic variability. It takes longer than FOCE for simple PK/PD problems (examples 1–3 and 6 in this tutorial) but can be more efficient than FOCE for complex PK/PD problems (such as example 4). By simple, this means analytical, linear PK problems and analytically evaluated PD problems, with perhaps no more than six model parameters to be estimated. Complex PK/PD problems are those that require ODEs or problems with more than six model parameters to be estimated. Efficiency reduces considerably when the model cannot be expressed in a particular fixed/random effect (PHI/MU) format (explained in the MU Referencing section). Importance sampling and SAEM are the two efficient Monte Carlo EM methods available in NONMEM.

How Imp and Saem Expectation Steps Are Implemented

IMP: Importance Sampling Algorithm

In IMP, the expectation step is performed by creating random normal deviates of ETAs and evaluating the conditional density (joint density normalized to integrate with respect to ETAs to the value of 1) at these ETAs for each subject. The normal random sampler is typically centered at the mode or the mean of the conditional density and a variance that approximates the variance of the conditional density; hence it samples in the “important” region of the conditional density. On the first iteration, this information is not available, so the mode and its FO approximation of the variance (called mode a posteriori (MAP) estimation, as is done in FOCE) is obtained and used as the mean and variance for the sampler. On subsequent iterations, the MAP estimation may be repeated to obtain the normal random sampler parameters, or the conditional Monte Carlo mean and conditional Monte Carlo variance obtained from the IMP of the previous iteration may be used. With this method, weighted averages of conditional means and variances of individual parameters (or ETAs) as well as accurate (with stochastic variation) assessments of the objective functions for each individual. The weight to each ETA sample is proportional to the goodness of fit of the sample relative to the probability of the sampler to select that sample, and it reflects the properties of the exact conditional density. Usually 300–1,000 random samples are used for each subject, and about 50–200 iterations are required to approach the maximum likelihood population parameters.

SAEM: MCMC Sampling Algorithm

As in IMP, random samples are generated from normal proposal densities. Instead of centered at the mode (or mean) of the conditional density, the proposal density is centered at the previous sample position. New samples are accepted with a probability that is related to the conditional density (goodness of fit) at the particular ETA sample position. The variance of the proposal density is adjusted to maintain a certain average acceptance rate. This method requires more elaborate sampling strategy but is useful for highly nonnormally distributed conditional densities. Unlike IMP that evaluates the problem in a single mode, the SAEM requires two modes of estimation. In the first mode, SAEM evaluates an unbiased but highly stochastic approximation of individual parameters (pseudo‐expectation, usually two samples per individual). Population parameters are updated from individual parameters by single‐iteration maximization steps that are very stable and statistically proven to improve the objective function (usually in 300–2,000 iterations). In the second mode, individual parameter samples from previous iterations are averaged together, converging toward the true conditional individual parameter means and variances. This leads to population parameters converging toward the maximum of the exact likelihood. The SAEM is not able to assess an objective function that can be used in hypothesis testing or for assessing final population goodness of fit. The objective function and standard errors are best obtained by one or a few iterations of a final IMP step with population parameters fixed at the final SAEM values. This is expectation‐only IMP because the maximization of population parameters has already been achieved by the SAEM step.

Approximate (Linearized) Likelihood Em Method: Its (19842)

This is an approximate conditional method that is able to analyze complex PK/PD problems with great efficiency and incidence of success. Although it is more accurate than FO, it is not as accurate as FOCE (NONMEM7 Technical Guide1, 3) when data are not rich (a subject is rich in data when there are many more data points than ETAs being estimated) and/or residual variability of data is large. The efficiency reduces considerably when the model cannot be expressed in a particular fixed/random effect (PHI/MU) format (MU Referencing section). This method is considered a deterministic EM method. The ITS evaluates the conditional mode (not mean!) and first order (expected) approximation of the variance of parameters of individuals by maximizing the conditional density. This integration (expectation) step is the same as in FOCE. The parameters are updated using the mean of the conditional modes and approximate individual variances, and therefore it is less accurate than the Monte Carlo EM methods. They are updated by single‐iteration maximization steps that are very stable (usually in 50–100 iterations). For rich data, ITS is almost as accurate as FOCE but much faster.

Full OMEGA blocks in EM analysis

Full OMEGA blocks are more easily updated by EM methods than by FOCE. They are preferred over diagonal OMEGAs in EM problems. Having off‐diagonal elements does not necessarily make EM methods less stable, so there is no need to fix off‐diagonal elements to 0 even though the standard error may be greater than the estimate. This is because every OMEGA element (including off‐diagonal elements) is updated by evaluating the sample variance of the many randomly assessed individual parameters. Thus, if the covariance of clearance~volume CL~V is reported in the NONMEM output as, for example, mean +/‐ standard error, 0.0018 ± 0.0113, this is an unconstrained assessment that this particular off‐diagonal element is not statistically different from 0. Performing a reassessment of the problem by fixing this off‐diagonal element to 0 is not necessary for stabilization of the problem, as is sometimes necessary with FOCE, where the off‐diagonal element is assessed by a regression process using derivatives and could challenge the stability of the estimation. If the original analysis was performed with FOCE, and if the off‐diagonal element was fixed to 0 because FOCE had round‐off error problems in estimation, or the $COV step could not complete, then allow the off‐diagonal to be estimated when doing EM. Then, only if the EM objective function is highly variable, or $COV step reports non‐positive‐definite issues, consider fixing off‐diagonal elements back to 0.

Usefulness and efficiency of each method

The following lists the general properties of each method and for what types of problems can they be most useful. It should be pointed out that these are just general guidelines, so the bullet points are intended to be general rules of thumb, and each problem must be assessed individually. It is reasonable to use a trial‐and‐error approach, and some methods can be improved in efficiency or accuracy by modifying their options. Also, there is considerable overlap in the usefulness of each of these methods for various types of problems as we shall see in the examples.

Monte Carlo IMP EM

Complex PK/PD problems with ODEs and/or many parameters Sparse (fewer data points per subject than ETAs to be estimated) or rich data Can be less accurate than SAEM with highly categorical data or very sparse data Can track progress of improvement in true objective function with each iteration Results can vary stochastically, typically by about 25% of SE Can handle full OMEGA blocks well Less efficient when some or many THETAs may not be MU referenced (described later)

SAEM

Categorical data Very sparse, sparse, or rich data Complex PK/PD problems with many parameters (may sometimes reach true objective function only within ±10 units of optimum and can take longer than IMP) Cannot assess true objective function during its progress, must finish analysis with IMP assessment of objective function Results can vary stochastically, typically by about 25% of SE Can handle full OMEGA blocks well Less efficient when some or many THETAs may not be MU referenced

ITS

Rich data Rapid, exploratory method Can be used as preanalysis to facilitate IMP or SAEM Requires less fuss with adjusting options than SAEM or IMP Results are highly reproducible to ±4 digits Can have large bias or instability for some problems Can handle full OMEGA blocks well Less efficient when some or many THETAs may not be MU referenced

FOCE

Rich and semirich data Does not require MU referencing Good for many THETAS with no ETAs associated with them More accurate than ITS Requires less fuss with adjusting options than SAEM or IMP Results are highly reproducible to ±4 digits Does not handle full OMEGA blocks as easily as EM If convergence criterion reduced (along with reducing precision criteria for ODE problems), then time of analysis can be reduced by twofold to threefold in some cases. Using MU referencing and the FAST option, additional increases in speed occur. In theory, all problems can be solved by EM methods. For Monte Carlo EM methods to be efficient, however, they rely on a particular statistical structure of the population analysis problem (gray box process) in which fixed effects parameters (THETAs) are involved only in defining the mean (mu) of the normal population distribution of individual parameters (PHI). That is, most THETAs need to be referenced in a PHI/MU format (MU referencing). If the mu‐referencing process is too complicated for a problem and/or there are many parameters to be estimated that cannot be or are not easily MU referenced, then FOCE/Laplace would be the preferred method of analysis of such a problem.

MU referencing

THETAs that define typical values of individual parameters are “mu related” (Greek letter μ to indicate mean of individual parameters). So, THETAs that are associated with ETAs can be MU referenced. Fixed effect THETAs that have no intersubject variability associated with them but serve as a shared value among subjects are not mu related. To best utilize EM methods, it is best to create MU reference equations in NMTRAN to describe these mu relations. The user supplies information on how THETA parameters are associated arithmetically with the ETAs and individual parameters: Phi_j = mu_j(theta) + eta(j) For each parameter j that has an ETA associated with it, and mu_j is a function of THETA. The association of one or more THETAs with ETA(1) must be identified by a variable called MU_1. For ETA(2), the variable is MU_2, etc. For example, suppose the original code is TVCL=(THETA(1)*(AGE/50)**THETA(2)) CL=TVCL*EXP(ETA(5)) TVV=THETA(3) V=TVV*EXP(ETA(3)) This code can be modified to include intermediate variables MU_x, which inform NONMEM of the relationship of certain THETAs with certain ETAs: LTVCL= LOG(THETA(1))+THETA(2)*LOG(AGE/50) MU_5= LTVCL LTVV=LOG(THETA(3)) MU_3=LTVV CL=EXP(MU_5+ETA(5)) V=EXP(MU_3+ETA(3)) In the above example, LTVCL stands for natural log of typical value clearance. Because the individual parameters CL and V are log‐normally distributed (exp(ETA)), the MUs are the log of the typical values so that they are arithmetically associated with the ETAs. Even better, one may impose a linear relationship between MU and THETA: LTVCL= THETA(1)+THETA(2)*LOG(AGE/50) MU_5= LTVCL LTVV=THETA(3) MU_3=LTVV CL=EXP(MU_5+ETA(5)) V=EXP(MU_3+ETA(3)) In such cases, THETA(1) is no longer the typical value of CL, but the logarithm of the typical value (LTVCL) of CL, just as MU_5 is. The initial THETA values on the $THETA record would need to be log transformed. Any former lower bound of 0 should not be included, as the log() imposes a natural 0 boundary on the original value. One can avoid transposing the inputted THETAs while still having linear MU referencing by using the $THETAI and $THETAR record (intro71). Linear MU referencing increases the robustness of the EM algorithms to converge toward a minimum, as the THETAs will then be updated by one‐step linear regression rather than by one‐step nonlinear regression. Furthermore, lower ISAMPLE (≤3) values are needed for stable updates with SAEM with linear MU referencing. IMP is not as sensitive in this regard because of its typically higher ISAMPLE value (≥300). Additional information about MU referencing and their rules are given in Supplementary Materials S1—Part A.

Mcmc Bayesian Analysis

The goal of MCMC full Bayesian analysis is to obtain a sample distribution of probable population parameters (posterior distribution), which is unlike the goal of maximization methods such as FO, FOCE/Laplace, and EM, which seek to find point (single‐valued) estimates of population parameters that best fit the data. Usually 10,000–30,000 samples are required (intro7.pdf1, 6). The samples are not statistically independent, but when the analysis is properly performed, they are uncorrelated overall. Unlike maximization methods (FO, FOCE/Laplace, EM), maximum likelihood parameters are not obtained, but with problems of sufficient data, the sample mean parameters are similar to maximum likelihood values. Also, a maximum likelihood objective function is not obtained, but a distribution of joint probability densities is obtained, from which 95% confidence bounds can be constructed and tested for overlap with those of alternative models. Criteria such as Bayes information criterion can also be used for hypothesis testing. Although the FOCE and EM methods obtain only approximate SEs to the parameters at evaluated point estimates using Fischer information matrix process, the MCMC Bayesian methods average the many samples of population parameters with frequencies in proportion to their ability to explain the data, and also, empirical SEs are evaluated from the variance of these parameters. With these properties, MCMC Bayesian analysis can be used as a substitute for bootstrap. MCMC Bayesian analysis takes longer than maximization analysis but provides more information and is faster than bootstrap. Use MCMC Bayesian analysis to embellish information on your final model. All problems can be solved by MCMC Bayesian analysis. In practice, the more the problem is linearly MU modeled, the more the Bayesian analysis can rely on the efficient Gibbs sampling method (gray box process). The fewer parameters that are linearly MU modeled, the more Bayesian analysis relies on the less efficient but general Metropolis‐Hastings sampling method (black box process) and potentially can be less stable. However, the no‐u‐turn Hamiltonian (NUTS) Metropolis‐Hastings sampling method references 7, 8 can be very efficient if analytical derivatives are supplied (Supplementary Materials S1—Part B).

Prior information

Prior information of population parameters is important for MCMC Bayesian analysis in order for them to be stable. Priors to OMEGAs are the most important, and therefore it is best to supply at least weakly informative priors to them. Although prior information may also be added to maximum likelihood (FO, FOCE, EM) estimations in NONMEM and could be useful for supplying informative priors based on previous studies, the maximization methods have sufficient statistical power for obtaining their goals of point estimates to not require uninformative or weakly informative priors for most problems. The MCMC Bayesian analysis, however, has less statistical power to obtain its goal because it does not seek just point estimates of the population parameters but their entire posterior distribution. A general rule in statistics is that the more you ask of a fixed set of data, the less power there is for each piece of information requested. See Supplementary Materials S1—Part C on how to provide prior information in NONMEM.

Termination testing

For EM analyses (IMP, SAEM, BAYES), because of the stochastic nature of the results, a deterministic method of stopping the analysis when the values change by no more than the third digit cannot be used because the values will always be changing stochastically at that precision. Instead, a statistical test is performed on whether the general change in the parameter varies by more than the stochastic noise. See Supplementary Materials S1—Part D on how to control the statistical test for convergence on Monte Carlo estimation methods. The following examples make use of some of the concepts described previously.

Example 1: PK Model With Covariates Using Imp, Saem, and Bayesian Analysis Methods

In the previous tutorial, example 504.ctl was used to demonstrate how the effect of covariates could be assessed on various PK parameters using the FOCE with interaction (FOCEI) method. This same model is easily rendered for EM analysis by identifying for NONMEM the “MU” parameters, the arithmetic means associated with the random effects. This is done conveniently for this example by log transforming the typical values. Although not essential, THETA(1) and THETA(2) are reparameterized as the log of the original parameters, so as to express the MUs completely linearly in all THETAs, as recommended earlier, and removing the need for placing lower bounds of 0 on THETA(1) and THETA(2) (Supplementary Materials S2, 504_its.ctl, 504_saem.ctl, 504_foce.ctl). Please see Table  1, code item 1, showing how the logarithm of the typical values are defined and associated with the MU_ variables.
Table 1

Control stream code segments showing relevant code

ItemCode
Example 1
1 $PK…LTVCL=THETA(1)+LOG(WT/70)*THETA(3)+LOG(AGE/50)*THETA(5)+SEX*THETA(7)LTVV=THETA(2)+LOG(WT/70)*THETA(4)+LOG(AGE/50)*THETA(6)+SEX*THETA(8)MU_1=LTVCLMU_2=LTVVCL=EXP(MU_1+ETA(1))V=EXP(MU_2+ETA(2))
2 $EST METHOD=ITS INTERACTION AUTO=1 PRINT=20 NOABORT
3 $EST METHOD=SAEM AUTO=1 NITER=500 PRINT=20$EST METHOD=IMP EONLY=1 PRINT=1 NITER=5 ISAMPLE=1000 MAPITER=0
Example 2
4 $PKMU_1 = THETA(1)MU_2 = THETA(2)MU_3 = THETA(3)MU_4 = THETA(4)CL = EXP(MU_1 + ETA(1))V1 = EXP(MU_2 + ETA(2))Q = EXP(MU_3 + ETA(3))V2 = EXP(MU_4 + ETA(4))
5 $ERRORIEPRED=A(1)/S1LLOQ=‐3.5SD = THETA(5); DEL can be 10E‐10 or smallerDEL=1.0E‐30; The following coding for LOG() prevents numerical errors; from occurring when F<=0IPRED = LOG(ABS(IEPRED)+DEL)IF(COMACT==1) PREDV=IPREDDUM = (LLOQ ‐ IPRED)/SD; Adding DEL to CUMD prevents it from becoming 0, which is not good when NONMEM evaluates ‐2*LOG(CUMD)CUMD = PHI(DUM)+DELTYPE=1IF(DV<LLOQ) TYPE=2IF(MDV==1) TYPE=0IF(TYPE.EQ.2) DV_LOQ=LLOQIF (TYPE.NE. 2.OR.NPDE_MODE==1) THENF_FLAG = 0Y = IPRED + SD * ERR(1)ENDIFIF (TYPE.EQ. 2.AND.NPDE_MODE==0) THENF_FLAG = 1Y = CUMDMDVRES=1ENDIF
6 $EST METHOD=IMP LAPLACE INTERACTION AUTO=1 PRINT=5 RANMETHOD=S2
Example 3
7 $ERRORIPRED=A(2)/VEXPP=THETA(4)+IPRED*THETA(5); Put a limit on this, as it will be exponentiated,; to avoid floating overflowIF(EXPP.GT.40.0) EXPP=40.0IF (TYPE.EQ.0) THEN; PK DataF_FLAG=0Y=F+F*ERR(1); a predictionELSE; Categorical dataF_FLAG=1; IF EXPP>40, then A>1.0d+17, A/B=1, and Y=DVAA=EXP(EXPP)B=1+AAY=DV*AA/B+(1‐DV)/B ; a likelihoodENDIF
Example 4
8 $DESDADT(1) = ‐(K10+K12)*A(1) + K21*A(2) ‐ VM*A(1)*A(3)/(A(1)+KM)DADT(2) = K12*A(1) ‐ K21*A(2)DADT(3) = ‐(VM‐K30)*A(1)*A(3)/(A(1)+KM) ‐ K30*A(3) + K03
9 $PK…A_0(3)=K03/K30
10 $ERRORETYPE=1IF(CMT.NE.1) ETYPE=0CP=A(1)/S1CR=A(3)/S3IPRE=CPIF(CMT.NE.1) IPRE=CRY = IPRE + IPRE*ETYPE*EPS(1) + IPRE*(1.0‐ETYPE)*EPS(2)
Example 5
11 $ABBR REPLACE ETA(OCC_CL)=ETA(5,7,9)$ABBR REPLACE ETA(OCC_V)=ETA(6,8,10)
12 $LEVELSID=(3[1],4[2])
13 $PK…CL=EXP(MU_1+ETA(1)+ETA(3)+ETA(OCC_CL))V=EXP(MU_2+ETA(2)+ETA(4)+ETA(OCC_V))
14 ;Individual omegas (1,2)$OMEGA BLOCK(2).1‐.0001 .1;SID OMEGAS (3,4)$OMEGA BLOCK(2).3‐.0001 .3; inter‐occasion omegas for occasion 1 (5,6)$OMEGA BLOCK(2).03‐.0001 .03; inter‐occasion omegas for occasion 2 and 3; SAME(n) means repeat block structure n times;; and omega parameters used for occasions 2 and 3 are shared; with those of occasion 1.$OMEGA BLOCK(2) SAME(2)
Example 6
15 $PK…VCM=DEXP(MU_1+ETA(1))K10M=DEXP(MU_2+ETA(2))VCF=DEXP(MU_3+ETA(3))K10F=DEXP(MU_4+ETA(4))Q=1IF(MIXNUM.EQ.2) Q=0V=Q*VCM+(1.0‐Q)*VCFK=Q*K10M+(1.0‐Q)*K10F
16 ;Initial OMEGA block 1, for sub‐population 1$OMEGA BLOCK(2).04;[p].01; [f].027; [p];Initial OMEGA block 2, for sub‐population 2$OMEGA BLOCK(2).05; [p].01; [f].06; [p]
Example 7
17 $PK…CL=EXP(MU_1+ETA(1))CLR=EXP(MU_3+ETA(3))F2=CLR/CL
18 $ERRORCP=A(1)/VUVL=UVOLIF(UVL<=0.0) UVL=1.0CU=A(2)/UVLIF(CMT==1) THENIPRE=CPW=IPRE+1.0E‐10Y=IPRE + W*EPS(1)ELSEIPRE=CUW=IPRE+1.0E‐10Y=IPRE + W*EPS(2)ENDIF
Control stream code segments showing relevant code For example 504_its.ctl, the ITS is used. The $EST record for this is listed in Table  1, code item 2. Although more approximate than FOCE, ITS is very fast and can be used as a preliminary analysis. For example 504_saem.ctl, the SAEM method is used, followed by IMP to obtain the final objective function (Table  1, code item 3). A convenient tool in NONMEM is available in which a subsequent $EST step uses as initial values the final estimates of the immediately previous $EST step. Here, the SAEM estimation is followed by the evaluation of the marginal likelihood objective function using IMP's expectation step only (EONLY = 1), but not allowing the IMP step to perform maximization updates on the fixed effects, retaining the fixed effects values at the final answer of the SAEM method. Furthermore, the conditional mean and variance of the individual parameters from the last step of the SAEM are used as the parameters to the importance sampler's proposal density (MAPITER = 0); that is, MAP estimation is not necessary for the first iteration because we have information from a previous estimation step. Subsequent IMP iterations borrow the conditional mean and variance of the previous iteration for the proposal density parameters. Five iterations of IMP are requested to obtain a stochastic sampling of the objective function value so one can get a sense of the extent of the Monte Carlo noise in the result. An FOCE assessment was included to compare the results (504_foce.ctl). Note that the final parameters from the ITS, SAEM/IMP, and FOCE are very similar, with the ITS objective function nearly identical to the FOCE, although the IMP objective function is slightly different from the FOCE result by about eight units (Table  2). When the FOCE objective function is evaluated at the population results of SAEM/IMP, the FOCE objective function differs by about two units. This suggests a small amount of nonlinearity of the conditional density, that is, the conditional density is not exactly normally distributed, and this results in slightly different assessments of the objective function as well as slightly different positions, although the population parameters are not statistically different between SAEM and FOCEI. Thus, for this example, the FOCEI and SAEM results are statistically similar, but one should always use the objective function from the same analysis method when making statistical comparisons between models.
Table 2

Final parameter estimates and standard errors for Example 1: Statistical assessment of covariates added to a base pharmacokinetic model using FOCE, importance sampling, SAEM Statistic/Estimation method, and Bayesian analysis methods

THETA1THETA2THETA3THETA4THETA5THETA6THETA7THETA8SIGMA(1:1)OMEGA(1:1)OMEGA(2:1)OMEGA(2:2)OBJ
Mean
ITS1.1123.4640.6711.32−0.5230.048−0.1−0.0540.0500.0320.0010.0471,058.542
FOCEI1.1093.4780.661.321−0.5340.052−0.101−0.0550.0500.0310.0010.0471,058.304
SAEM (IMP)1.073.4670.6441.311−0.5440.060−0.101−0.0570.0500.030.00030.0491,051.790FOCE OBJ = 1,060.360
BAYES1.073.4670.6411.315−0.5570.055−0.103−0.0520.0550.029−0.0020.046661.634 FOCE OBJ = 1,061.227
SE
ITS0.050.0440.20.250.1350.1490.0630.0810.0070.0080.010.015
FOCEI0.0380.0490.160.2020.1030.1350.0570.0710.0070.0090.0080.014
SAEM (IMP)0.0390.0500.1630.2080.1050.1330.0580.0730.0070.0090.0080.014
BAYES0.0390.0500.1650.2040.1060.1320.0570.0730.0080.0090.0080.01419.475

BAYES, Bayesian analysis; FOCE, first‐order conditional estimation; FOCEI, FOCE with interaction; IMP, importance sampling; ITS, iterative two stage; OBJ, objective function; SAEM, stochastic approximation expectation maximization; SE, standard error.

Final parameter estimates and standard errors for Example 1: Statistical assessment of covariates added to a base pharmacokinetic model using FOCE, importance sampling, SAEM Statistic/Estimation method, and Bayesian analysis methods BAYES, Bayesian analysis; FOCE, first‐order conditional estimation; FOCEI, FOCE with interaction; IMP, importance sampling; ITS, iterative two stage; OBJ, objective function; SAEM, stochastic approximation expectation maximization; SE, standard error. The number of samples collected for each subject ISAMPLE is by default 2 for SAEM, but should be increased up to 10 if data are sparse or data are nonnormally distributed, such as categorical data or below‐detection data. For IMP, ISAMPLE should be increased from its default of 300 when there are many ETAs or the objective function has large stochastic fluctuations. When there are fewer data points than there are ETAs to be estimated (sparse data) or data are categorical, then DF (degrees of freedom) should be set to a nonzero number to use the t‐distribution sampler and/or decrease the acceptance rate IACCEPT from the default value of 0.4 to about 0.2. Alternatively, option AUTO = 1 may be selected as is done for some of these examples. This is an option that requests NONMEM to make decisions about ISAMPLE for SAEM and IACCEPT, DF, and ISAMPLE for IMP for each subject. Furthermore, because SAEM uses an MCMC algorithm so that samples of the ETAs generated are correlated, the correlation interval CINTERVAL is also evaluated by AUTO = 1 to assure that when NONMEM tests for convergence, the appropriate spread of iterations is considered when assessing whether all parameters no longer change systematically and only random (stochastic) variations remain. Supplementary Materials S1—Part E shows how this example may be rendered for Bayesian analysis. For Monte Carlo methods, stochastic reproducibility of results can be improved by setting RANMETHOD = P to allow reproducibility during parallelization of a problem. The AUTO = 1 feature performs additional complex analysis and decisions, and using this feature may result in lack of stochastic reproducibility. Notice that the MATRIX = R option is generally requested in these examples. The R matrix is the Fisher information matrix constructed from the second derivative of the objective function with respect to the various parameters estimated. The more approximate S matrix (score matrix) is constructed from the first derivatives of each individual's objective function contribution with respect to the various parameters estimated and can be requested with MATRIX = S. The variance–covariance of the estimates will be evaluated as R−1 or S−1, respectively. If no MATRIX option is provided, the variance–covariance is evaluated as R−1S R−1. The S matrix is more quickly evaluated, which may be significant especially for ODE‐type problems (such as example 4 below), and is sufficiently accurate if there are more subjects (preferably about two times more) than the dimension of the variance–covariance. If computation time is not a concern, I prefer MATRIX = R as it is more consistent with other statistical software.

Example 2: Modeling Data That Are Below The Loq

The following example models data that are below the LOQ (see ref. 9). Normally distributed, below quantifiable limits are given the following likelihood evaluation: For data below the LOQ, their data likelihood contribution is expressed as the probability that the data value is normally distributed and below the LOQ. Because this partial integral of the normal density is not itself a normal density, NONMEM must be informed by setting F_FLAG = 1 that the returned Y value is not the predicted function but is a user‐defined data likelihood for that datum. As we shall see, the F_FLAG = 1 option may be generally used to allow the user to provide any data likelihood that is not normally distributed. In such cases, the Laplace option must be set. See Supplementary Materials S3 for the complete control stream of this example. The first part of the control stream ad3tr4_loqb_lap.ctl (Laplace method) and ad3tr4_loqb_imp.ctl (IMP method) consists of a typical setup with MU referencing (Table  1, code item 4). Consideration to modeling the LOQ data is confined to the $ERROR block (Table  1, code item 5). The individual predicted value (IPRED) and standard deviation (SD) of the residual error are defined, followed by evaluation of the Gaussian function PHI(), the result stored in the variable CUMD (cumulative distribution). In addition to IPRED, it is desired to store the population predicted value, which is essentially the value of IPRED evaluated when ETA = 0, and this is signaled by NONMEM on the occasion that COMACT = 1, which is saved in the variable PREDV (population prediction variable). Normally, the NONMEM reserved variable PRED (population prediction) will be automatically calculated for the user when the data are the typical normally distributed type and calculating PREDV is unnecessary. However, when data are modeled with a user‐specified likelihood, the PRED value will be set to an uninformative value of 1. One may wish to use the more informative PREDV. In this particular setup, any observed value DV (dependent variable) that is less than the LOQ (in this case the log(LOQ) = LLOQ, because the log(DV) is fitted in the model) will be designated TYPE = 2, and those data above LOQ are designated TYPE = 1. During estimation (when NPDE_MODE = 0, that is, normalized prediction distribution error (NPDE) is not being calculated) when TYPE = 1, NONMEM is informed by setting F_FLAG = 0 that the returned Y value is to be treated as the predicted value to a normally distributed dependent variable, which is the usual interpretation of data. When TYPE = 2, NONMEM is informed by setting F_FLAG = 1 that the returned Y value is to represent the likelihood of the datum itself, which in this case is CUMD. As of NONMEM 7.4, setting MDVRES = 1 (MDVRES stands for MDV (missing dependent variable indicator) during residual error analysis) for the nonnormal data (F_FLAG = 1) assures that weighted residual diagnostics (CWRES10) are calculated for the collection of normal data (F_FLAG = 0) in that subject and excludes from the weighted residual evaluation any data for which MDVRES = 1 (or MDV = 1). In previous versions, if there was at least one nonnormal datum in the collection of data considered for weighted residual assessment, no weighted residuals for any of the data for that subject were calculated. Normalized prediction distribution error (NPDE) values for LOQ data may also be calculated (based on refs. 11, 12, 13). To implement this, use the NPDE_MODE switch and set reserved variable DV_LOQ as shown in the previous code. When NPDE_MODE = 1, NONMEM is executing the $ERROR block during the evaluation of NPDEs for the items in the $TABLE records (so, not during estimation), and if the datum is Notice that the $TABLE record requests that NPDE values be generated from ESAMPLE = 1,000 samples. In general, the most extreme value generated in NPDE is limited by ESAMPLE as follows: so selecting a sufficiently high ESAMPLE is necessary so that extreme NPDE values are sufficiently detected. Usually it is sufficient that the NPDE extreme values be −3.09 to 3.09 (default ESAMPLE = 300) to accurately reflect those NPDE beyond the 95% range (NPDE = −1.96, 1.96) without significant truncation. An ESAMPLE of 10,000 will give you a range of NPDE = −3.72, 3.72. A portion of table ad3tr4_loqb_imp.tab is listed in Table  3. Note that CWRES values for all normal data exists, but not for records whose DV < LOQ (bolded in Table  3), whereas the NPDE values are calculated for all data records. In Figure  1 one can see how providing additional NPDEs from the LOQ data can fill out the lower x‐regions of a scatter plot.
Table 3

A portion of the post hoc results from Example 2 (ad3tr4_loqb_imp.tab): Modeling data that are below the limit of quantitation

IDTIMEDVIPREDPREDPREDVCWRESNPDE
1.0000E+000.0000E+00−2.9934E+013.0116E+002.9972E+002.9972E+000.0000E+000.0000E+00
1.0000E+002.0000E−012.7061E+002.6978E+002.7013E+002.7013E+002.9914E−021.2819E−01
1.0000E+001.0000E+001.4796E+001.5042E+001.5732E+001.5732E+00−1.5716E−011.9934E−01
1.0000E+004.0000E+00−6.6033E−01−7.0388E−01−6.2029E−01−6.2029E−011.1124E−01−6.7731E−02
1.0000E+007.0000E+00−1.2313E+00−1.1889E+00−1.0987E+00−1.0987E+00−2.1749E−018.5329E−02
1.0000E+004.0000E+01−5.1486E+00−5.8988E+001.0000E+00−5.5438E+000.0000E+00−2.8193E−01

The record in bold contains a DV that is less than LOQ, for which CWRES is not calculated, but NPDE is calculated.

CWRES, conditional weighted residuals; DV, dependent variable; ID, subject identification number; IPRED, individual predicted value; NPDE, normalized prediction distribution error; PRED, predicted value; PREDV, Population Prediction Variable.

Figure 1

Normalized prediction distribution error (NPDE) plotted against population prediction variable (PREDV) for Example 2: Modeling data that are below the limit of quantitation (LOQ). The NPDE values for data < LOQ are shown in red and, as expected, occupy the lower PREDV region of the plot.

A portion of the post hoc results from Example 2 (ad3tr4_loqb_imp.tab): Modeling data that are below the limit of quantitation The record in bold contains a DV that is less than LOQ, for which CWRES is not calculated, but NPDE is calculated. CWRES, conditional weighted residuals; DV, dependent variable; ID, subject identification number; IPRED, individual predicted value; NPDE, normalized prediction distribution error; PRED, predicted value; PREDV, Population Prediction Variable. Normalized prediction distribution error (NPDE) plotted against population prediction variable (PREDV) for Example 2: Modeling data that are below the limit of quantitation (LOQ). The NPDE values for data < LOQ are shown in red and, as expected, occupy the lower PREDV region of the plot. The conditional Laplace method is susceptible to ending the analysis with round‐off errors, as in this example. The Monte Carlo EM analysis method does not have this difficulty and can be particularly effective with problems with LOQ data. Control stream ad3tr4_loqb_imp.ctl uses the IMP estimation method (Table  1, code item 6). Again, the AUTO feature is used, which adjusts IACCEPT and other option values to allow handling of highly nonnormal conditional densities that are likely to occur with nonnormal data likelihoods. Also, RANMETHOD = S2 turns on quasi‐random (Sobol) sampling to reduce stochastic noise in the objective function evaluation (intro71).

Example 3: Modeling Pk Categorical Response Data

The following is another example in which the user must define the likelihood for the data. In this example, PK samples are collected and interpreted in the usual manner with a normal data likelihood. Response data are also available, 0 indicating treatment failure, and 1 indicating treatment success. The first portion models the standard one‐compartment model with absorption using the convenient library module ADVAN2 in NONMEM and also providing MU‐reference equations for EM analysis (wexample10_saem.ctl, wexample10_bayes.ctl, wexample10_lap.ctl, wexample10_imp.ctl; Supplementary Materials S4). In the $ERROR block, the PK data (TYPE = 0) is modeled as usual normally distributed data (F_FLAG = 0 is set), and its prediction function (mean to the normal density) is returned as the Y value, whereas when the data are clinical response (TYPE = 1), a logistic regression function is used to match up the concentration of drug with the increased probability of positive response, and a likelihood is returned as the Y value (Table  1, code item 7). A linear function (EXPP = THETA(4)+F*THETA(5)) relates the drug concentration A(2)/V linearly to drug effectiveness, which in turn is used in a logistic regression function (exp(x)/(1 + exp(x)) to convert this into a probability of effectiveness. When DV = 1, Y is returned with the probability that the drug was effective, and when DV = 0, Y is returned with the probability that the drug was not effective. Notice that extremes of likelihood values (0 or 1) are returned depending on the following scenarios: Thus the model tests that with drug present, a high incidence of treatment success occurs, and with little or no drug present, a low incidence of treatment success occurs. The remainder of the control stream file contains typical records for estimation and output. There may be more than two categories of responses for clinical data, for which the user's model must return the appropriate likelihood for each of those occurrences, and the likelihoods should total to 1 to statistically consider all possibilities. Notice in these examples that an ITS step is first performed, followed by the estimation with the method of interest. In wexample10_lap.ctl, an ITS estimation is performed first and then the classical Laplace estimation. As mentioned previously, Laplace can be sometimes unstable in its search for the minimal objective function, so having the Laplace estimation begin at the population parameter values where the ITS ended can stabilize the analysis. Similarly, in wexample10_bayes.ctl, an ITS estimation is performed first and then BAYES estimation. This can be beneficial to improving stability and reducing the burn‐in time required for BAYES, as the BAYES method will use as initial values the final population and individual parameters that were assessed by ITS. For wexample10_saem.ctl, one or a few iterations of ITS is first performed to obtain individual parameters evaluated at the mode of their posteriors, which can facilitate the SAEM analysis.

Example 4: Using Ode Solvers to Model a Basic Target‐Mediated Drug Disposition Model

This example shows one of the most versatile ways to model a PK/PD problem, with ODE, using mass transfer equations as a means to describe the interactions of molecules and rates of movements from one physiological or biochemical component to the other. The following is a basic target‐mediated drug disposition model. Consider an antibody with central volume of distribution VC (compartment 1) that distributes to the peripheral compartment (compartment 2) with rate constants K12 and K21, a linear rate constant of elimination K10 associated with the high‐capacity receptor via the Fc component of the antibody, and an interaction with a target cell membrane receptor (compartment 3, total receptor) for which the antibody was designed to bind with high affinity via its (Fabʹ)2 component, which results in the internalization and elimination of the antibody–receptor complex with maximal internalization constant Vm and half‐maximal internalization rate occurring at plasma antibody levels of Kmc. The receptor is continually replenished by the cell with first order production rate K03 and first order elimination rate K30 in the absence of antibody. This is readily expressed as a series of mass transfer equations that take into account each of these actions by simple equation components in record $DES, shown in Supplementary Materials S5 (r2complb_imp.ctl, r2complb_foce.ctl) and Table  1, code item 8. Notice that the initial value of the receptor level is set using the reserved variable A_0(3), to K03/K30 (Table  1, code item 9). Also, the PK data are modeled with residual variance SIGMA(1,1), and PD data are modeled with another residual variance SIGMA(2,2) (Table  1, code item 10). Figure  2 shows a typical PK profile and total receptor profile for a subject receiving an infusion of loading‐dose antibody during the first week followed by a higher dose the second week. Parameter symbols are located where they impact the curve shape the most to give some sense of their contributions. Although there are eight parameters to the model, there is sufficient detail in the PK and PD curves to allow for their evaluation in a suitably rich data set.
Figure 2

Antibody levels (pharmacokinetic) and total receptor levels (pharmacodynamic) are plotted against time for Example 4: Using ordinary differential equation solvers to model a basic target‐mediated drug disposition model. Parameter symbols are located where they impact the curve shape the most to give some sense of their contributions. Ab, antibody; Kmc, concentration of half‐maximal rate of internalization ; K12, rate constant of transfer from compartment 1 to compartment 2; K21, rate constant of transfer from compartment 2 to compartment 1; K10, rate constant of elimination from compartment 1; K03, rate of production of receptor (compartment 3); K30, rate constant of elimination of receptor (compartment 3); Vc, volume of distribution of central compartment ; Vm, maximal rate of internalization.

Antibody levels (pharmacokinetic) and total receptor levels (pharmacodynamic) are plotted against time for Example 4: Using ordinary differential equation solvers to model a basic target‐mediated drug disposition model. Parameter symbols are located where they impact the curve shape the most to give some sense of their contributions. Ab, antibody; Kmc, concentration of half‐maximal rate of internalization ; K12, rate constant of transfer from compartment 1 to compartment 2; K21, rate constant of transfer from compartment 2 to compartment 1; K10, rate constant of elimination from compartment 1; K03, rate of production of receptor (compartment 3); K30, rate constant of elimination of receptor (compartment 3); Vc, volume of distribution of central compartment ; Vm, maximal rate of internalization. For target‐mediated drug disposition models, the IMP method is particularly efficient.14 When the analysis starts far from reasonable initial values, the mode of the conditional (MAP) estimation during the first iteration in IMP is facilitated by allowing a Monte Carlo sampling of MCETA‐1 ETAs to be tested, and the ETA vector providing the lowest initial objective function is used as the initial position for the MAP estimation. Also, the TOL was set to 6, and SIGL (significant digit precision for lower level calculations) should also be set to 6, as described in the manual. For a data set with 50 subjects, this problem is solved several fold faster by IMP than by FOCEI, but improvements in the efficiency of FOCE evaluation have been made over the years, such as the introduction of the SIGL option, which allows one to reduce the convergence criterion NSIG (significant digit precision for population parameter estimates) and the ODE evaluation tolerance TOL, which can make the FOCE method also more efficient.14 Also, the use of MU referencing with the FAST option allows the evaluation of analytical derivatives with respect to the population parameters, which also increases accuracy of evaluating the variance–covariance of estimates during the $COV step. The example r2complb_foce.ctl was evaluated with low SIGL(=6) low NSIG(=1), with low tolerance setting for ODE integration (TOL = 6) and using the FAST option, resulting in the estimation completing in 475 seconds. For a more conservative precision assessment, with SIGL = 9, NSIG = 3, TOL = 9, the FAST option completes the estimation in 1,022 seconds (r2complb_foce3.ctl), which is still much faster, and with a cleaner termination status, than when not using the FAST option (23,777 seconds, r2complb_foce4.ctl). Of course, individual rates of improvement will vary depending on the model and data.

Example 5: Analyzing Data Modeled With Multiple Levels of Mixed Effects

Additional nested levels of random effects may be added in NONMEM. In the following example the PK parameters may vary within an individual from one dosing event to the next, called interoccasion variability. Furthermore, there are the usual random effects between individuals (interindividual variability) as well as random effects explaining variability between one clinical site and the next (intersite variability). With the residual variance, this consists of four hierarchical random effects and errors. The code of superid30_1* gives an example of how this may be conveniently coded using some of the symbolic declarations available since NONMEM 7.3 (superid30_1_bayes.ctl, superid30_1_saem.ctl, superid_1_foce.ctl; Supplementary Materials S6). The dosing events within a given subject are demarcated by the OCC (occasion) data item, which has values of 1, 2, 3, etc., to indicate occasion number. The $ABBR RERPLACE records map symbolic references OCC_CL and OCC_V to the ETAs that are appropriate for each occasion. For example, for PK parameter CL, OCC_CL maps to ETA(5), ETA(7), or ETA(9), depending on whether the OCC data item is 1, 2, or 3, respectively. This allows three separate CLs to be independently created, one for each occasion, within a particular individual. A similar mapping is performed for parameter V using OCC_V to map ETA(6), ETA(8), or ETA(10) for the three occasions using the $ABBR REPLACE record (Table  1, code item 11). Random effects that scope across individuals such as intersite variability in this example are mapped using the $LEVEL record (Table  1, code item 12). The SID (site identification number) data item has separate values in the data set for each site, and those subjects sharing the same site value will share the same random effect ETA value. NONMEM is informed that ETA(3) is a CL ETA that changes only with every site and is associated by nesting with CL ETA(1), which varies with each subject. They associate together because they provide random effects to the same individual parameter. Similarly, volume ETA(4) is another eta that changes only with every site and is associated by nesting with intersubject volume random effect ETA(2). This relationship is reflected in the way the individual parameters are modeled using these ETAs in the $PK record (Table  1, code item 13). The hierarchical random effects levels are each given OMEGA block descriptions (Table  1, code item 14). To permit a BAYES analysis, uninformative prior OMEGAs are supplied with the same pattern as the to‐be‐estimated OMEGAs (superid30_1_bayes). The estimation records shown in Supplementary Materials S6 are examples of how one may perform ITS, SAEM, IMP, BAYES, and FOCE on this type of problem. These are followed by the $COV and $TABLE records. Of particular importance is that the FNLETA must be set to 0 to have final SID ETAs retain their shared values among subjects of a common SID value when outputted in a table (in this example, superid30_1*.tab). Also, for FOCE, options SLOW and NONINFETA = 1 must be set so that proper gradients are evaluated for updating the SID ETAs. Table  4 shows a part of superid30_1_foce.tab that outputs the ID, SID, OCC, TIME, IPRED, and ETAs. Notice that the SID‐level ETAs 3 and 4 do not change until SID changes.
Table 4

A portion of the final output results for Example 5 (superid30_1_foce.tab): Analyzing data modeled with multiple levels of mixed effects

IDSIDOCCTIMEIPREDETA1ETA2ETA3ETA4ETA5ETA6ETA7ETA8ETA9ET10
1.0000E+001.0000E+001.0000E+000.0000E+005.7690E+01−1.2951E−01−2.7152E−01−5.3382E−01−7.1304E−019.0991E−02−1.6888E−01−8.3666E−028.6754E−02−4.1063E−02−1.1915E−02
1.0000E+001.0000E+001.0000E+001.0000E−015.7053E+01−1.2951E−01−2.7152E−01−5.3382E−01−7.1304E−019.0991E−02−1.6888E−01−8.3666E−028.6754E−02−4.1063E−02−1.1915E−02
1.0000E+001.0000E+001.0000E+002.0000E−015.6423E+01−1.2951E−01−2.7152E−01−5.3382E−01−7.1304E−019.0991E−02−1.6888E−01−8.3666E−028.6754E−02−4.1063E−02−1.1915E−02
2.0000E+001.0000E+001.0000E+000.0000E+004.4818E+01−7.0114E−02−1.4319E−01−5.3382E−01−7.1304E−01−1.1614E−01−4.4747E−021.0101E−014.5861E−02−3.3181E−03−5.0617E−02
2.0000E+001.0000E+001.0000E+001.0000E−014.4486E+01−7.0114E−02−1.4319E−01−5.3382E−01−7.1304E−01−1.1614E−01−4.4747E−021.0101E−014.5861E−02−3.3181E−03−5.0617E−02
2.0000E+001.0000E+001.0000E+002.0000E−014.4156E+01−7.0114E−02−1.4319E−01−5.3382E−01−7.1304E−01−1.1614E−01−4.4747E−021.0101E−014.5861E−02−3.3181E−03−5.0617E−02
3.0000E+001.0000E+001.0000E+000.0000E+002.8086E+01−1.1209E−019.8214E−02−5.3382E−01−7.1304E−01−1.9225E−021.8118E−017.7868E−02−7.4813E−02−1.0431E−01−6.4336E−02
3.0000E+001.0000E+001.0000E+001.0000E−012.7948E+01−1.1209E−019.8214E−02−5.3382E−01−7.1304E−01−1.9225E−021.8118E−017.7868E−02−7.4813E−02−1.0431E−01−6.4336E−02
3.0000E+001.0000E+001.0000E+002.0000E−012.7811E+01−1.1209E−019.8214E−02−5.3382E−01−7.1304E−01−1.9225E−021.8118E−017.7868E−02−7.4813E−02−1.0431E−01−6.4336E−02
4.0000E+001.0000E+001.0000E+000.0000E+003.2419E+01−9.2289E−021.6778E−01−5.3382E−01−7.1304E−016.7656E−03−3.1853E−02−5.2640E−02−8.5933E−023.9829E−031.8459E−01
4.0000E+001.0000E+001.0000E+001.0000E−013.2227E+01−9.2289E−021.6778E−01−5.3382E−01−7.1304E−016.7656E−03−3.1853E−02−5.2640E−02−8.5933E−023.9829E−031.8459E−01
4.0000E+001.0000E+001.0000E+002.0000E−013.2036E+01−9.2289E−021.6778E−01−5.3382E−01−7.1304E−016.7656E−03−3.1853E−02−5.2640E−02−8.5933E−023.9829E−031.8459E−01
5.0000E+001.0000E+001.0000E+000.0000E+003.2916E+012.0926E−011.5725E−01−5.3382E−01−7.1304E−011.2382E−03−3.6522E−028.7817E−03−2.9378E−025.8401E−021.1359E−01
5.0000E+001.0000E+001.0000E+001.0000E−013.2649E+012.0926E−011.5725E−01−5.3382E−01−7.1304E−011.2382E−03−3.6522E−028.7817E−03−2.9378E−025.8401E−021.1359E−01
5.0000E+001.0000E+001.0000E+002.0000E−013.2385E+012.0926E−011.5725E−01−5.3382E−01−7.1304E−011.2382E−03−3.6522E−028.7817E−03−2.9378E−025.8401E−021.1359E−01
6.0000E+001.0000E+001.0000E+000.0000E+004.7660E+01−1.4427E−01−1.1702E−01−5.3382E−01−7.1304E−018.7928E−02−1.3239E−01−1.3833E−01−9.0787E−023.6565E−031.8711E−01
6.0000E+001.0000E+001.0000E+001.0000E−014.7232E+01−1.4427E−01−1.1702E−01−5.3382E−01−7.1304E−018.7928E−02−1.3239E−01−1.3833E−01−9.0787E−023.6565E−031.8711E−01
6.0000E+001.0000E+001.0000E+002.0000E−014.6808E+01−1.4427E−01−1.1702E−01−5.3382E−01−7.1304E−018.7928E−02−1.3239E−01−1.3833E−01−9.0787E−023.6565E−031.8711E−01
7.0000E+001.0000E+001.0000E+000.0000E+004.6352E+011.1683E−02−1.2005E−01−5.3382E−01−7.1304E−01−2.7490E−02−1.0154E−01−7.6464E−025.8465E−021.1414E−01−1.9799E−03
7.0000E+001.0000E+001.0000E+001.0000E−014.5931E+011.1683E−02−1.2005E−01−5.3382E−01−7.1304E−01−2.7490E−02−1.0154E−01−7.6464E−025.8465E−021.1414E−01−1.9799E−03
7.0000E+001.0000E+001.0000E+002.0000E−014.5514E+011.1683E−02−1.2005E−01−5.3382E−01−7.1304E−01−2.7490E−02−1.0154E−01−7.6464E−025.8465E−021.1414E−01−1.9799E−03
8.0000E+001.0000E+001.0000E+000.0000E+004.1899E+011.7997E−01−5.5437E−02−5.3382E−01−7.1304E−015.2661E−02−6.5148E−02−8.6443E−027.8233E−021.0205E−01−4.2697E−02
8.0000E+001.0000E+001.0000E+001.0000E−014.1458E+011.7997E−01−5.5437E−02−5.3382E−01−7.1304E−015.2661E−02−6.5148E−02−8.6443E−027.8233E−021.0205E−01−4.2697E−02
8.0000E+001.0000E+001.0000E+002.0000E−014.1022E+011.7997E−01−5.5437E−02−5.3382E−01−7.1304E−015.2661E−02−6.5148E−02−8.6443E−027.8233E−021.0205E−01−4.2697E−02
9.0000E+001.0000E+001.0000E+000.0000E+004.0748E+01−3.4621E−022.5466E−02−5.3382E−01−7.1304E−011.7205E−02−1.1819E−014.9575E−025.0070E−02−8.0644E−027.9295E−02
9.0000E+001.0000E+001.0000E+001.0000E−014.0423E+01−3.4621E−022.5466E−02−5.3382E−01−7.1304E−011.7205E−02−1.1819E−014.9575E−025.0070E−02−8.0644E−027.9295E−02
9.0000E+001.0000E+001.0000E+002.0000E−014.0100E+01−3.4621E−022.5466E−02−5.3382E−01−7.1304E−011.7205E−02−1.1819E−014.9575E−025.0070E−02−8.0644E−027.9295E−02
1.0000E+011.0000E+001.0000E+000.0000E+003.3914E+01−7.9089E−031.3188E−01−5.3382E−01−7.1304E−01−7.2529E−02−4.1041E−027.4692E−02−6.3879E−02−1.1558E−021.5417E−01
1.0000E+011.0000E+001.0000E+001.0000E−013.3703E+01−7.9089E−031.3188E−01−5.3382E−01−7.1304E−01−7.2529E−02−4.1041E−027.4692E−02−6.3879E−02−1.1558E−021.5417E−01
1.0000E+011.0000E+001.0000E+002.0000E−013.3492E+01−7.9089E−031.3188E−01−5.3382E−01−7.1304E−01−7.2529E−02−4.1041E−027.4692E−02−6.3879E−02−1.1558E−021.5417E−01
1.1000E+012.0000E+001.0000E+000.0000E+009.0996E+00−1.0569E−01−7.6361E−024.6715E−047.1010E−01−1.2187E−025.9678E−029.9922E−02−7.5580E−03−1.2245E−01−7.5073E−02
1.1000E+012.0000E+001.0000E+001.0000E−019.0745E+00−1.0569E−01−7.6361E−024.6715E−047.1010E−01−1.2187E−025.9678E−029.9922E−02−7.5580E−03−1.2245E−01−7.5073E−02
1.1000E+012.0000E+001.0000E+002.0000E−019.0495E+00−1.0569E−01−7.6361E−024.6715E−047.1010E−01−1.2187E−025.9678E−029.9922E−02−7.5580E−03−1.2245E−01−7.5073E−02
1.2000E+012.0000E+001.0000E+000.0000E+007.1985E+00−1.9556E−021.0727E−014.6715E−047.1010E−01−9.3251E−021.1041E−016.0611E−02−1.3951E−012.0220E−026.9816E−02
1.2000E+012.0000E+001.0000E+001.0000E−017.1827E+00−1.9556E−021.0727E−014.6715E−047.1010E−01−9.3251E−021.1041E−016.0611E−02−1.3951E−012.0220E−026.9816E−02
1.2000E+012.0000E+001.0000E+002.0000E−017.1669E+00−1.9556E−021.0727E−014.6715E−047.1010E−01−9.3251E−021.1041E−016.0611E−02−1.3951E−012.0220E−026.9816E−02

ETA1‐10=ETA(1) to ETA(10), empirical bayes estimates; ID=subject identification number; IPRED, individual predicted value; OCC=occasion number; SID=site identification number.

A portion of the final output results for Example 5 (superid30_1_foce.tab): Analyzing data modeled with multiple levels of mixed effects ETA1‐10=ETA(1) to ETA(10), empirical bayes estimates; ID=subject identification number; IPRED, individual predicted value; OCC=occasion number; SID=site identification number. Only one of the ETAs belonging to an individual parameter requires a nonzero MU associated with the typical value for that parameter. Here, the MU_ variables are associated with the ETAs to intersubject variability (such as MU_1 as typical value for CL and indexed to ETA(1), the intersubject variability). The other ETAs, for intersite variability and interoccasion variability, implicitly have 0 valued MU_'s, hence MU_3, MU_5, etc., are not modeled. NMTRAN issues MU referencing warnings, which can be ignored. Notice that once again, ITS estimation can be used as a partial burning‐in/estimation step to facilitate SAEM, BAYES, and FOCE.

Example 6: Modeling a Mixture of Subpopulations of Parameters

The distribution of model parameters sometimes may be best described as coming from two or more subpopulations among the subjects. When this occurs, it is desirable to determine if a particular categorical covariate, such as sex, can explain the reason for these subpopulations. Sometimes none of the covariates available can explain the subpopulation distributions, and it is then desired that individuals be tested for their relative goodness of fit between these subpopulations. The example in Supplementary Materials S7 (pmixture_foce.ctl, pmixture_saem.ctl, pmixture_bayes.ctl) with a one‐compartment model and two subpopulations of V and K demonstrates how this is set up in NONMEM. In the $PK record, two sets of V and K1 are set up for the analysis, one pair for each subpopulation, each pair distributed according to that subpopulation's mean MU and ETAs (Table  1, code item 15). In this example, subpopulation 1 is modeled using MU_1 for mean to LOG(V), and MU_2 for mean to log(K), with their respective ETAs for their random effects, whereas subpopulation 2 parameters are modeled with means MU_3 and MU_4, and their respective ETAs. NONMEM requests individual parameters to be modeled for subpopulation 1 or 2 for each call to the user model via the parameter MIXNUM. It then determines the goodness of fit of the subject's data considering each subpopulation, and the MIXEST value is set to the subpopulation number that best fits that subject's data. The subpopulations are given separate block OMEGAs, as there should be no correlation between parameters across subpopulations (Table  1, code item 16). As usual, priors to OMEGAs are set up to match the block pattern of the estimated OMEGAs. The post hoc best‐fitting V, K for each subject and the subpopulation to which they belong (BESTSUB = MAXEST) may be outputted, as indicated in the $TABLE record, outputting to file pmixture*.par. Table  5 lists a part of pmixture_foce.par. In addition, the conditional mean (for Monte Carlo EM) or mode (for FOCE/Laplace/ITS) individual PHIs and their variances for each subpopulation are listed in pmixture*.phm (see Table  6), along with the probability of belonging to a subpopulation PMIX. For each subject, MIXEST is related to PMIX by:
Table 5

Outputted table results for Example 6: Modeling a mixture of subpopulations of parameters (pmixture_foce.par)

ID V K BESTSUB
1.0000E+004.2434E+019.3660E−021.0000E+00
2.0000E+006.6534E+011.1262E−011.0000E+00
3.0000E+006.1668E+015.0276E−012.0000E+00
4.0000E+007.4587E+019.5481E−021.0000E+00
5.0000E+005.0625E+011.1113E−011.0000E+00
6.0000E+005.9876E+014.2720E−012.0000E+00
7.0000E+005.8508E+011.3610E−011.0000E+00
8.0000E+006.9308E+011.2559E−011.0000E+00
9.0000E+007.0448E+014.0392E−012.0000E+00
1.0000E+016.2197E+011.2000E−011.0000E+00
1.1000E+017.4701E+018.9449E−021.0000E+00
1.2000E+017.6044E+017.6652E−012.0000E+00
1.3000E+016.9676E+019.4314E−021.0000E+00
1.4000E+016.4067E+011.4138E−011.0000E+00
1.5000E+015.3923E+018.0854E−012.0000E+00
1.6000E+016.7635E+011.2107E−011.0000E+00
1.7000E+011.0518E+021.0739E−011.0000E+00
1.8000E+019.1576E+015.1767E−012.0000E+00
1.9000E+019.4717E+017.6706E−021.0000E+00
2.0000E+018.7513E+017.7070E−021.0000E+00
2.1000E+015.7781E+014.5237E−012.0000E+00
2.2000E+016.9630E+011.0151E−011.0000E+00
2.3000E+015.8963E+011.5230E−011.0000E+00
2.4000E+015.9655E+018.3048E−012.0000E+00
2.5000E+016.0324E+011.0135E−011.0000E+00
2.6000E+017.3017E+011.1475E−011.0000E+00
2.7000E+016.6592E+014.7002E−012.0000E+00
2.8000E+017.1897E+011.0585E−011.0000E+00
2.9000E+017.1601E+011.1429E−011.0000E+00
3.0000E+015.1493E+013.3186E−012.0000E+00
3.1000E+014.8920E+011.1613E−011.0000E+00
3.2000E+019.2087E+011.1539E−011.0000E+00
3.3000E+015.8832E+015.1238E−012.0000E+00
3.4000E+017.7011E+011.0821E−011.0000E+00
3.5000E+016.5992E+019.3086E−021.0000E+00
3.6000E+017.3862E+012.8765E−012.0000E+00
3.7000E+017.7355E+011.1107E−011.0000E+00
3.8000E+016.3286E+019.9980E−021.0000E+00
3.9000E+017.8039E+016.8947E−012.0000E+00

BESTSUB=index to best fitting sub‐population; ID=subject identification number; K=rate constant of elimination; V=volume of distribution.

Table 6

NONMEM, partial phm file results for Example 6: Modeling a mixture of subpopulations of parameters (pmixture_foce.phm)

TABLE NO. 1: First‐order conditional estimation with interaction: Problem = 1 Subproblem = 0 Superproblem1 = 0 Iteration1 = 0 Superproblem2 = 0 Iteration2 = 0
IDSUBPOPPMIXETA(1)ETA(2)ETA(3)ETA(4)ETC (1,1)ETC (2,1)ETC (2,2)ETC (3,3)ETC (4,3)ETC (4,4)OBJ
111.00000E+00−4.93563E−01−7.16567E−020.00000E+000.00000E+001.82140E−03−1.33876E−032.97276E−034.93103E−02−1.10284E−025.99658E−02−14.7965423227514
124.67808E−130.00000E+000.00000E+00−5.35659E−01−1.63579E+004.61817E−02−8.57633E−032.72419E−021.85406E−03−1.33784E−032.82839E−0340.5984872879239
211.00000E+00−4.37870E−021.12666E−010.00000E+000.00000E+001.83753E−03−1.14698E−032.12519E−034.93103E−02−1.10284E−025.99658E−02−27.4568591873074
221.42478E−090.00000E+000.00000E+00−8.52734E−02−1.45695E+004.61817E−02−8.57633E−032.72419E−021.86034E−03−1.13173E−032.00410E−0311.8952271143952
311.88263E−21−1.25051E−011.60474E+000.00000E+000.00000E+001.86450E−03−2.72656E−041.15078E−044.93103E−02−1.10284E−025.99658E−0241.2497512311461
321.00000E+000.00000E+000.00000E+00−1.40094E−01−1.18895E−024.61817E−02−8.57633E−032.72419E−021.86913E−03−2.72204E−041.14364E−04−55.5798855094779
411.00000E+007.04636E−02−5.24048E−020.00000E+000.00000E+001.82337E−03−1.31803E−032.87198E−034.93103E−02−1.10284E−025.99658E−02−30.5564906816249
422.61403E−110.00000E+000.00000E+002.91913E−02−1.61671E+004.61817E−02−8.57633E−032.72419E−021.85486E−03−1.31447E−032.72696E−0316.7921907639984
511.00000E+00−3.17050E−019.93389E−020.00000E+000.00000E+001.83656E−03−1.16029E−032.17821E−034.93103E−02−1.10284E−025.99658E−02−12.5394921766005
521.54579E−100.00000E+000.00000E+00−3.61141E−01−1.46635E+004.61817E−02−8.57633E−032.72419E−021.86007E−03−1.14184E−032.04093E−0331.2547378153604
615.53963E−17−1.49876E−011.43913E+000.00000E+000.00000E+001.86469E−03−3.21643E−041.60099E−044.93103E−02−1.10284E−025.99658E−0232.0133384541306
621.00000E+000.00000E+000.00000E+00−1.69586E−01−1.74743E−014.61817E−02−8.57633E−032.72419E−021.86934E−03−3.20334E−041.58334E−04−44.2371064095188
711.00000E+00−1.72336E−013.02066E−010.00000E+000.00000E+001.84871E−03−9.68943E−041.48974E−034.93103E−02−1.10284E−025.99658E−02−26.9334957081190
722.47355E−070.00000E+000.00000E+00−2.12555E−01−1.27566E+004.61817E−02−8.57633E−032.72419E−021.86444E−03−9.51460E−041.40747E−032.10498244200648
811.00000E+00−2.94763E−032.21691E−010.00000E+000.00000E+001.84453E−03−1.04190E−031.73401E−034.93103E−02−1.10284E−025.99658E−02−21.2148466908645
827.50375E−080.00000E+000.00000E+00−5.24174E−02−1.33823E+004.61817E−02−8.57633E−032.72419E−021.86324E−03−1.01054E−031.59067E−0310.2093031386916
912.32945E−161.11717E−021.38345E+000.00000E+000.00000E+001.86471E−03−3.39986E−041.78874E−044.93103E−02−1.10284E−025.99658E−0226.5010173168367
921.00000E+000.00000E+000.00000E+00−6.98870E−03−2.30785E−014.61817E−02−8.57633E−032.72419E−021.86939E−03−3.38783E−041.77081E−04−46.8768468381362
1011.00000E+00−1.11194E−011.76185E−010.00000E+000.00000E+001.84181E−03−1.08493E−031.88839E−034.93103E−02−1.10284E−025.99658E−02−26.2675357733099
1026.10413E−090.00000E+000.00000E+00−1.51094E−01−1.39829E+004.61817E−02−8.57633E−032.72419E−021.86188E−03−1.07033E−031.78824E−0310.1746567796867
1111.00000E+007.19914E−02−1.17659E−010.00000E+000.00000E+001.81638E−03−1.38883E−033.22615E−034.93103E−02−1.10284E−025.99658E−02−28.9248184755368
1125.02444E−120.00000E+000.00000E+002.67665E−02−1.67209E+004.61817E−02−8.57633E−032.72419E−021.85243E−03−1.38321E−033.03126E−0321.7221908489041
1214.92953E−853.25971E−015.45635E−010.00000E+000.00000E+001.85739E−03−7.72211E−049.33345E−044.93103E−02−1.10284E−025.99658E−02313.955053188483
1221.00000E+000.00000E+000.00000E+006.94565E−024.09859E−014.61817E−02−8.57633E−032.72419E−021.86850E−03−1.78488E−044.92198E−05−75.6803309494078

ETA(x)=empirical bayes estimate to xth eta; ETC(x,y)=conditional variance between ETA(x) and ETA(y); ID=subject identification number ; OBJ=objective function value for a given subject and sub‐population; PMIX=probability of subject belonging to this sub‐population; SUBPOP=sub‐population index.

Outputted table results for Example 6: Modeling a mixture of subpopulations of parameters (pmixture_foce.par) BESTSUB=index to best fitting sub‐population; ID=subject identification number; K=rate constant of elimination; V=volume of distribution. NONMEM, partial phm file results for Example 6: Modeling a mixture of subpopulations of parameters (pmixture_foce.phm) ETA(x)=empirical bayes estimate to xth eta; ETC(x,y)=conditional variance between ETA(x) and ETA(y); ID=subject identification number ; OBJ=objective function value for a given subject and sub‐population; PMIX=probability of subject belonging to this sub‐population; SUBPOP=sub‐population index. The phi(x) values in the.phm file are related to the V and K in the pmixture.par file as follows: If BESTSUB=1: V=exp(phi(1)) K=exp(phi(2)) If BESTSUB=2: V=exp(phi(3)) K=exp(phi(4)) The conditional mean and variances averaged among the subpopulations using the PMIX value as weight is listed in pmixture*.phi (not shown). For this example, the subjects are extremely likely to belong to one subpopulation or another, so these values do not differ from the records in pmixture.phm whose PMIX value is close to 1.

Example 7: Modeling Periodically Collected Urine Samples

When urine data are collected, the model must account for the urine compartment to be emptied and then filled. Complete urine data consists of time of start of an empty bladder, time of emptying of bladder measured, concentration of drug in urine, and total volume of urine collected at that time. In NONMEM, a particular compartment X may be emptied (turned off), that is, its amount A(x) set to 0, when a data record is encountered in which its CMT (compartment number) item is minus x. A subsequent data record may be used to indicate the start of its refilling or turned on with a positive x. Usually, this would be immediately after urine collection (and bladder voiding) of the previous –x record. For example, a series of data records may be seen in Table  7.
Table 7

Subset of records to data file (urine.dat) for example 7, with urine voiding records

IDTIMEAMTRATEDVMDVEVIDCMTUVOL
1.0000E + 000.0000E + 001.0000E + 030.0000E + 000.0000E + 001.0000E + 001.0000E + 001.0000E + 000.0000E + 00
1.0000E + 000.0000E + 000.0000E + 000.0000E + 000.0000E + 001.0000E + 002.0000E + 002.0000E + 000.0000E + 00
1.0000E + 005.0000E + 000.0000E + 000.0000E + 009.5704E + 000.0000E + 000.0000E + 00−2.0000E + 001.0000E + 01
1.0000E + 005.0000E + 000.0000E + 000.0000E + 000.0000E + 001.0000E + 002.0000E + 002.0000E + 000.0000E + 00
1.0000E + 001.0000E + 010.0000E + 000.0000E + 005.8533E + 000.0000E + 000.0000E + 00−2.0000E + 001.2000E + 01
1.0000E + 001.0000E + 010.0000E + 000.0000E + 000.0000E + 001.0000E + 002.0000E + 002.0000E + 000.0000E + 00

AMT, amount of drug; CMT, compartment number; DV, dependent variable; EVID=event ID; ID, subject identification number; MDV, missing dependent variable indicator; UVOL, urine volume.

Subset of records to data file (urine.dat) for example 7, with urine voiding records AMT, amount of drug; CMT, compartment number; DV, dependent variable; EVID=event ID; ID, subject identification number; MDV, missing dependent variable indicator; UVOL, urine volume. For the ADVAN series of models, the N+1th compartment is called the output compartment. For ADVAN1, compartment 2 is the output (urine) compartment. The output compartment by default is turned off and is turned on when a CMT = 2 record appears. As this record is used just to turn on “bladder filling” and there are no data associated with it, its EVID is set to 2, a nondose, nonobservation event. The next record of interest is the urine collection record at time = 5, where the urine concentration is recorded as DV, urine volume (amount of urine voided) UVOL is recorded, and the CMT = −2, to indicate that, in addition to this being a urine collection record, the compartment is to be “turned‐off,” that is, amount of compartment 2 set to 0 (bladder emptied) immediately after. Then, the next record should be EVID = 2, CMT = 2, at the same time, to indicate that the output compartment is to be turned on again, that is, the bladder is to be refilled in anticipation of the next urine collection at time = 10. The model listed in Supplementary Materials S8 uses the urine data to determine the portion of drug that is renally cleared (total clearance is CL, renal clearance is CLR), and IMP is used as the estimation method. The CLR is related to the total CL by F2 = CL/CLR, where F2 is a reserved variable that determines what fraction of eliminated drug from compartment 1 goes to the urine compartment 2 (urine.ctl; Table  1, code item 17). The $ERROR block assigns the predicted values, CP (concentration of plasma), or CU (concentration of urine), and residual error (EPS(1) or EPS(2)) to the appropriate data (Table  1, code item 18). This problem may also be estimated using one of the differential equation solver ADVANs (ADVAN6, ADVAN8, ADVAN9, ADVAN13, ADVAN14, and ADVAN15). The control stream model needs to be modified at the $SUBROUTINES record and $DES record (urine2.ctl; Supplementary Materials S8). The SIGL should match the TOL, and NSIG should be 3× less than SIGL for ODE problems. Note that output compartment is NCOMPARTMENTS+1, so the output compartment is still 2.

Conclusion

This tutorial listed examples of typical types of PK/PD modeling problems that occur in the pharmaceutical field, which the reader can use as a template for his or her own modeling endeavors in NONMEM. It is hoped that with these examples and the description of the general concepts about the properties and behaviors of the various statistical algorithms, the user is able to construct models of varying complexity and wisely choose the appropriate estimation method.

Funding

ICON Clinical Research LLC. licenses the NONMEM and PDx‐Pop software.

Conflict of Interest

The author is a paid employee of ICON Clinical Research LLC. and is the present developer of NONMEM. Supplementary Materials S1. (file NONMEM_Tutorial_II_S1.pdf) A PDF file containing: Part A: Additional Information on MU‐Referencing. Part B: No‐U‐Turn Hamiltonian Bayes Method. Part C: Providing Prior Information for Bayesian Analysis. Part D: Termination Testing. Part E: Setting up Example 1 for Bayesian Analysis (504b.ctl). Click here for additional data file. Supplementary Materials S2. (Example 1, file NONMEM_Tutorial_I_S2.zip): The zip file contains the following files for example 1:501.csv: data file.504_foce.ctl: control stream file. 504_foce.res: NONMEM report file.504_foce.tab: Parameters outputted by user‐specified $TABLE record. 504_foce.ext: Raw output file. 504_foce.cov: Variance‐Covariance matrix of estimates to THETAs, OMEGAs, and SIGMAs. 504_foce.cor: Fully informative correlation matrix of estimates, with standard errors as diagonal elements, and correlation values on the off‐diagonal elements. 504_foce.coi: Inverse covariance matrix (Fisher information matrix). 504_foce.phi: Individual ETAs (eta()), their variances (etc()), and individual objective function values. 504_its.ctl: control stream file. 504_its.res: NONMEM report file. 504_its.tab: Parameters outputted by user‐specified $TABLE record. 504_its.ext: Raw output file. 504_its.cov: Variance‐Covariance matrix of estimates to THETAs, OMEGAs, and SIGMAs. 504_its.cor: Fully informative correlation matrix of estimates, with standard errors as diagonal elements, and correlation values on the off‐diagonal elements. 504_its.coi: Inverse covariance matrix (Fisher information matrix). 504_its.phi: Individual ETAs (eta()), their variances (etc()), and individual objective function values. 504_saem.ctl: control stream file. 504_saem.res: NONMEM report file. 504_saem.tab: Parameters outputted by user‐specified $TABLE record. 504_saem.ext: Raw output file. 504_saem.cov: Variance‐Covariance matrix of estimates to THETAs, OMEGAs, and SIGMAs. 504_saem.cor: Fully informative correlation matrix of estimates, with standard errors as diagonal elements, and correlation values on the off‐diagonal elements. 504_saem.coi: Inverse covariance matrix (Fisher information matrix). 504_saem.phi: Individual ETAs (eta()), their variances (etc()), and individual objective function values. 504_bayes.ctl: control stream file. 504_bayes.res: NONMEM report file. 504_bayes.tab: Parameters outputted by user‐specified $TABLE record. 504_bayes.ext: Raw output file. 504_bayes.cov: Variance‐Covariance matrix of estimates to THETAs, OMEGAs, and SIGMAs. 504_bayes.cor: Fully informative correlation matrix of estimates, with standard errors as diagonal elements, and correlation values on the off‐diagonal elements. 504_bayes.coi: Inverse covariance matrix (Fisher information matrix). 504_bayes.phi: Individual ETAs (eta()), their variances (etc()), and individual objective function values. 504_nuts.ctl: control stream file. 504_nuts.res: NONMEM report file. 504_nuts.tab: Parameters outputted by user‐specified $TABLE record. 504_nuts.ext: Raw output file. 504_nuts.cov: Variance‐Covariance matrix of estimates to THETAs, OMEGAs, and SIGMAs. 504_nuts.cor: Fully informative correlation matrix of estimates, with standard errors as diagonal elements, and correlation values on the off‐diagonal elements. 504_nuts.coi: Inverse covariance matrix (Fisher information matrix). 504_nuts.phi: Individual ETAs (eta()), their variances (etc()), and individual objective function values. Click here for additional data file. Supplementary Materials S3. (Example 2, file NONMEM_Tutorial_II_S3.zip): The zip file contains the following files for example 2: ad3tr4.csv. ad3tr4_loqb_lap.ctl. ad3tr4_loqb_lap.res. ad3tr4_loqb_lap.ext. ad3tr4_loqb_lap.tab. ad3tr4_loqb_lap.phi. ad3tr4_loqb_lap.coi. ad3tr4_loqb_lap.cov. ad3tr4_loqb_imp.ctl. ad3tr4_loqb_imp.res. ad3tr4_loqb_imp.ext. ad3tr4_loqb_imp.tab. ad3tr4_loqb_imp.phi. ad3tr4_loqb_imp.coi. ad3tr4_loqb_imp.cov. Click here for additional data file. Supplementary Materials S4. (Example 3, file NONMEM_Tutorial_II_S4.zip): The zip file contains the following files for example 3: wexample10.csv. wexample10_lap.ctl. wexample10_lap.res. wexample10_lap.ext. wexample10_lap.tab. wexample10_lap.phi. wexample10_lap.coi. wexample10_lap.cov. wexample10_saem.ctl. wexample10_saem.res. wexample10_saem.ext. wexample10_saem.tab. wexample10_saem.phi. wexample10_saem.coi. wexample10_saem.cov. wexample10_bayes.ctl. wexample10_bayes.res. wexample10_bayes.ext. wexample10_bayes.tab. wexample10_bayes.phi. wexample10_bayes.coi. wexample10_bayes.cov. Click here for additional data file. Supplementary Materials S5. (Example 4, file NONMEM_Tutorial_II_S5.zip): The zip file contains the following files for example 4: r2comp.csv. r2complb_imp.ctl. r2complb_imp.res. r2complb_imp.ext. r2complb_imp.phi. r2complb_imp.coi. r2complb_imp.cov. r2complb_foce.ctl. r2complb_foce.res. r2complb_foce.ext. r2complb_foce.phi. r2complb_foce.coi. r2complb_foce.cov. r2complb_foce3.ctl. r2complb_foce3.res. r2complb_foce3.ext. r2complb_foce3.phi. r2complb_foce3.coi. r2complb_foce3.cov. r2complb_foce4.ctl. r2complb_foce4.res. r2complb_foce4.ext. r2complb_foce4.phi. r2complb_foce4.coi. r2complb_foce4.cov. Click here for additional data file. Supplementary Materials S6. (Example 5, file NONMEM_Tutorial_II_S6.zip): The zip file contains the following files for example 5: Superid30.csv. Superid30_1_foce.ctl. Superid30_1_foce.res. Superid30_1_foce.ext. Superid30_1_foce.tab. Superid30_1_foce.phi. Superid30_1_foce.coi. Superid30_1_foce.cov. Superid30_1_imp.ctl. Superid30_1_imp.res. Superid30_1_imp.ext. Superid30_1_imp.tab. Superid30_1_imp.phi. Superid30_1_imp.coi. Superid30_1_imp.cov. Superid30_1_bayes.ctl. Superid30_1_bayes.res. Superid30_1_bayes.ext. Superid30_1_bayes.tab. Superid30_1_bayes.phi. Superid30_1_bayes.coi. Superid30_1_bayes.cov. Click here for additional data file. Supplementary Materials S7. (Example 6, file NONMEM_Tutorial_II_S7.zip): The zip file contains the following files for example 6: Pmixture_foce.csv. Pmixture_foce.ctl. Pmixture_foce.res. Pmixture_foce.ext. Pmixture_foce.phi. Pmixture_foce.phm. Pmixture_foce.cov. Pmixture_foce.coi. Pmixture_foce.cor. Pmixture_saem.ctl. Pmixture_saem.res. Pmixture_saem.ext. Pmixture_saem.phi. Pmixture_saem.phm. Pmixture_saem.cov. Pmixture_saem.coi. Pmixture_saem.cor. Pmixture_bayes.ctl. Pmixture_bayes.res. Pmixture_bayes.ext. Pmixture_bayes.phi. Pmixture_bayes.phm. Pmixture_bayes.cov. Pmixture_bayes.coi. pmixture_bayes.cor. Click here for additional data file. Supplementary Materials S8. (Example 7, file NONMEM_Tutorial_II_S8.zip): The zip file contains the following files for example 7: urine.dat. urine.ctl urine.res. urine.tab. urine.ext. urine.phi. urine.coi. urine.cov. urine.cor. urine2.ctl. urine2.res. urine2.tab. urine2.ext. urine2.phi. urine2.coi. urine2.cov. urine2.cor. Click here for additional data file.
Very low drug levelsVery high drug levels
No response (DV = 0) Y = 1 Y = 0
Response (DV = 1) Y = 0 Y = 1
  18 in total

1.  Applying Beta Distribution in Analyzing Bounded Outcome Score Data.

Authors:  Chuanpu Hu; Honghui Zhou; Amarnath Sharma
Journal:  AAPS J       Date:  2020-03-17       Impact factor: 4.009

2.  Pharmacokinetic Modeling of Warfarin І - Model-based Analysis of Warfarin Enantiomers with a Target Mediated Drug Disposition Model Reveals CYP2C9 Genotype-dependent Drug-drug Interactions of S-Warfarin.

Authors:  Shen Cheng; Darcy R Flora; Allan E Rettie; Richard C Brundage; Timothy S Tracy
Journal:  Drug Metab Dispos       Date:  2022-07-07       Impact factor: 3.579

3.  Combined PK/PD Index May Be a More Appropriate PK/PD Index for Cefoperazone/Sulbactam against Acinetobacter baumannii in Patients with Hospital-Acquired Pneumonia.

Authors:  Yingjie Zhou; Jing Zhang; Yuancheng Chen; Jufang Wu; Beining Guo; Xiaojie Wu; Yingyuan Zhang; Minggui Wang; Ru Ya; Hao Huang
Journal:  Antibiotics (Basel)       Date:  2022-05-23

4.  Towards Evidence-Based Weaning: a Mechanism-Based Pharmacometric Model to Characterize Iatrogenic Withdrawal Syndrome in Critically Ill Children.

Authors:  Sebastiaan C Goulooze; Erwin Ista; Monique van Dijk; Dick Tibboel; Elke H J Krekels; Catherijne A J Knibbe
Journal:  AAPS J       Date:  2021-05-17       Impact factor: 4.009

5.  Model-Informed Bayesian Estimation Improves the Prediction of Morphine Exposure in Neonates and Infants.

Authors:  Joshua C Euteneuer; Tomoyuki Mizuno; Tsuyoshi Fukuda; Junfang Zhao; Kenneth D R Setchell; Louis J Muglia; Alexander A Vinks
Journal:  Ther Drug Monit       Date:  2020-10       Impact factor: 3.118

6.  Early prognostic performance of miR155-5p monitoring for the risk of rejection: Logistic regression with a population pharmacokinetic approach in adult kidney transplant patients.

Authors:  Luis Quintairos; Helena Colom; Olga Millán; Virginia Fortuna; Cristina Espinosa; Lluis Guirado; Klemens Budde; Claudia Sommerer; Ana Lizana; Yolanda López-Púa; Mercè Brunet
Journal:  PLoS One       Date:  2021-01-22       Impact factor: 3.240

7.  Assessing parameter uncertainty in small-n pharmacometric analyses: value of the log-likelihood profiling-based sampling importance resampling (LLP-SIR) technique.

Authors:  Astrid Broeker; Sebastian G Wicha
Journal:  J Pharmacokinet Pharmacodyn       Date:  2020-04-04       Impact factor: 2.745

Review 8.  Prior information for population pharmacokinetic and pharmacokinetic/pharmacodynamic analysis: overview and guidance with a focus on the NONMEM PRIOR subroutine.

Authors:  Anna H-X P Chan Kwong; Elisa A M Calvier; David Fabre; Florence Gattacceca; Sonia Khier
Journal:  J Pharmacokinet Pharmacodyn       Date:  2020-06-13       Impact factor: 2.745

Review 9.  Population Pharmacokinetics of Clotting Factor Concentrates and Desmopressin in Hemophilia.

Authors:  Tim Preijers; Lisette M Schütte; Marieke J H A Kruip; Marjon H Cnossen; Frank W G Leebeek; Reinier M van Hest; Ron A A Mathôt
Journal:  Clin Pharmacokinet       Date:  2021-01       Impact factor: 6.447

10.  Effect of SLCO1B1 Polymorphisms on High-Dose Methotrexate Clearance in Children and Young Adults With Leukemia and Lymphoblastic Lymphoma.

Authors:  Rachael R Schulte; Leena Choi; Nipun Utreja; Sara L Van Driest; C Michael Stein; Richard H Ho
Journal:  Clin Transl Sci       Date:  2020-09-25       Impact factor: 4.689

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.