127 NM-TRAN Control Records
Generated from nmhelp plain-text source files (*.ctl) of the NONMEM 7.6.0 distribution. These mirror the content presented by nmhelp and complement the formatted Part VIII Help Guide.
1 $ABBREVIATED
MEANING: Provides instructions about abbreviated code
CONTEXT: NM-TRAN Control Record
USAGE:
$ABBREVIATED [COMRES=n1] [COMSAV=n2]
[DERIV2=NO] [DERIV2=NOCOMMON] [DERIV1=NO]
[FASTDER | NOFASTDER]
[CHECKMU | NOCHECKMU]
[DES=COMPACT|DES=FULL]
[REPLACE left_string = right_string ] ...
[DECLARE [type] [DOWHILE] name [(dimension [,dimension])] ...
[PROTECT]
[FUNCTION function_name(input_vector_name,dimension[,usage])]
[VECTOR input_vector_name(dimension)]SAMPLE:
$ABBREVIATED COMRES=2DISCUSSION:
Optional. May be used when $PK, $ERROR, or $PRED abbreviated code is present. Must precede all blocks of abbreviated code. With NONMEM 7.4, may also be used when there is no abbreviated code. For example, $ABBR REPLACE may be used for label substitution in NONMEM report files.
OPTIONS:
COMRES=n1 ('common reserve')-
COMRESgives instructions to NM-TRAN. Values of n1:-1Do not store any variables in the global variable array,VRBL, in theNMPRD4module.0Store variables inNMPRD4with no reserved positions (the default)n1Store variables inNMPRD4, but reserve the first n1 positions.
NMPRD4is referenced by COM(I). This option is intended for advanced users of NONMEM, e.g., when abbreviated code is combined with user-supplied subroutines or verbatim code. A user-supplied subroutine may reserve the first n1 positions inNMPRD4for its use, in which case the optionCOMRESshould be set to n1 to instruct NM-TRAN to skip these positions; the first position used by NM-TRAN for storing variables defined in abbreviated code will be position {n1}+1.$TABLEand$SCATTERmay explicitly reference variables in reserved positions 1 through n1 by COM(1) through COM(n1), respectively, in addition to listing variables defined in abbreviated code by name. An individual block of abbreviated code (e.g.$PK) may include the pseudo-statementCOMRES=-1, which prevents any variable defined in that particular block from being stored inNMPRD4. COMSAV=n2 ('common save')-
Values of variables displayed in tables and scatterplots are obtained from
NMPRD4. There are particular times when data records are passed toPREDfor the purpose of obtaining these values; these are called copying passes. TheSAVEregion ofNMPRD4is the initial part of this array. If a variable is stored in theSAVEregion, then the value of the variable computed with a given data record during a copying pass will be found inNMPRD4when the same record is passed during the next copying pass, i.e. it will have been saved from the previous copying pass. This is in contrast to the usual behaviour, where with a given data record, the value inNMPRD4is the value computed with the previous data record. n2 is the initial size of theSAVEregion, i.e. the number of positions in this region. n2 =0 is the default value. n2 may not exceed n1. TheSAVEregion has size n2 initially, but NM-TRAN may extend it ifSAVEvariables are used. However, if n2 =-1, theSAVEregion is not to be extended, and there is to be noSAVEregion altogether. (See copying block). When PREDPP is used, and a$PKblock is present, NM-TRAN inserts code into the PK routine that stores the value ofCOMSAVatICALL=1. If no$PKblock is present, and a$ERRORblock is present, the code is inserted into theERRORroutine. When PREDPP is not used, and a$PREDblock is present, the generated or libraryPREDroutine stores the value ofCOMSAVatICALL<=1. DERIV1=NO(NM74)-
Prevents the computation of first derivatives. For example, may be used when only
SAEMorBAYESis performed, orIMPMAP/ITS/FOCEare performed usingOPTMAP>0 andETADER>0. The global variableNOFIRSTDERCODEis set to 1. DERIV2=NO- Prevents the computation of second derivatives, which are needed only for the Laplacian method.
DERIV2=NOCOMMON-
Permits the computation of these derivatives, but prevents them from being stored in the global variable
NMPRD4.$ESTIMATION METHOD=CONDLAPLACIANmay be specified, but variables representing second derivatives are not stored inNMPRD4. Therefore, they cannot be displayed in tables and scatterplots. In addition, no variables computed in the$PKblock may be referenced in the$ERRORblock. This is true whether or not these variables happen to have second derivatives, and whether or not the Laplacian method is used. FASTDER, NOFASTDER-
With NONMEM 7.2 and higher, NM-TRAN collects statements that compute first-partial eta-derivatives together in
FSUBS, and they are performed only when NONMEM setsIFIRSTEM=1.NOFASTDERprevents NM-TRAN from doing this, and restores the order of statements inFSUBSto what it was in previous versions.FASTDERrequests that the statements be collected, and is the default. (See Partial Derivative Indicators). CHECKMU, NOCHECKMU-
With NONMEM 7.2 and higher, NM-TRAN checks the MU model statements in abbreviated code and issues warning messages if they appear to contain mistakes. This can take a long time for large control streams. Also, in the examples directory, there are control streams for which the check is too difficult for NMTRAN (tdist6_sim.ctl and tdist7.ctl), and some for which the warnings are inappropriate (the “superid” control streams that use
$LEVEL).NOCHECKMUcan be used to prevent NM-TRAN from attempting to check the MU model statements.CHECKMUrequests that MU model statements be checked, and is the default. Neither option affects the generated code. DES=FULL-
Arrays of the DES routine are stored in non-compact form. With
$ESTIMATION METHOD=CONDLAPLACIAN, the optionNUMERICALis also required.DES=FULLis the default withADVAN9andADVAN15andADVAN17. (Prior to NONMEM 7.4,FULLwas required withADVAN13.) DES=COMPACT-
Arrays of the DES routine are stored in compact form. Required with Laplacian method; optional otherwise. This is the default, except with
ADVAN9andADVAN15andADVAN17. REPLACE left_string = right_string-
There are several different forms of the
REPLACEoption. They do not affect verbatim code. Case is ignored.- Simple replacement
REPLACEleft_string = right_string
$TABLEand$SCATTERrecords. Left_string is replaced by right_string. The search is “anchored” by a Fortran identifier. That is, left_string is parsed for the first Fortran identifier and the abbreviated code is searched for the same identifier. Following the identifier, the entire left_string must match the abbreviated code. Single or double quotes around a string are optional. They are necessary if the string contains punctuation such as a comma. A given line of abbreviated code may have multiple replacements; they are applied in the order that they appear in the NM-TRAN control stream. Examples:$ABBR REPLACE PI=3.14159265 $ABBR REPLACE THETA(CL)=THETA(4) $ABBR REPLACE ETA(CL)=ETA(5) $ABBR REPLACE K34="3,4" ... CL=PI*THETA(CL)*EXP(ETA(CL)) PRINT *,OMEGA(K34)With this feature, subscripts ofThe post-replacement code is CL=3.14159265*THETA(4)*EXP(ETA(5)) PRINT *,OMEGA(3,4)THETA,ETA, andEPSandERRmay be given symbolic names in abbreviated code, and$ABBR REPLACEis used to replace them with integer subscripts. With NONMEM 7.4, this feature also requests label substitution in NONMEM report files and table files. For example, the following will cause all appearances of “ETA(CL)” to be replaced by “ETA(3)” in the generated subroutine, and will cause “ETA(3)” to be replaced by “ETA(CL)” in the NONMEM report and any table file in which “ETA(3)” is listed.Label substitution can be turned off for an entire problem with$ABBR REPLACE ETA(CL)=ETA(3)NOSUB=1option of the$DEFAULTrecord. Label substitution can be turned off for a specific NONMEM task (and all subsequent tasks) with theNOSUB=1option of$TABLE,$SCAT, and$ESTIMATION. Substitutions will never be made in the additional output files *.ext, ,phi, etc., to maintain their third party software readability.This is called “explicit” compartment name substitution. With NONMEM 7.5, compare the “implicit” compartment name substitution feature of theWith this feature, compartment names may be used instead of compartment numbers. For example, $ABBR REPLACE A(DEPOT)=A(1) $ABBR REPLACE DADT(DEPOT)=DADT(1) ... $DES DADT(DEPOT)=-KA*A(DEPOT)$MODELrecord. SeeINTRODUCTIONTO NONMEM 7, Symbolic Label Substitutions of Model Compartments- Replacement with selection by data item
$ABBR REPLACEVAR(d)=VAR(n1,n2,..,nk) May be used in$PK,$ERROR,$PREDblocks only. VAR must one ofETA,EPS,THETA. (ERRis not permitted.) d must be a data item. The integer value of d (i.e., INT(d)) is used to select one of n1,n2,..,nk. If any of the ni is 0, that position is skipped. The effective code is: IF (d.eq.1) VAR(d)=VAR(n1) IF (d.eq.2) VAR(d)=VAR(n2) … The actual generated code uses Q-type indicator variables, and variables such asTHETA_OCC_in place ofTHETA(OCC).
A user-defined variable can be given a default value in case the implied selection is not satisfied. E.g., suppose there are 3 doses per subject (Example: Suppose OCC is a data item that takes values 1 and 2. $ABBR REPLACE THETA(OCC)=THETA(4,7) ... $PK TVCL=THETA(OCC) The effective code after replacement is IF (OCC==1) TVCL=THETA(4) IF (OCC==2) TVCL=THETA(7)DOSN=1,2,3) and the model is:$PK… IF(DOSN.EQ.1)F1=1IF(DOSN.EQ.2)F1=1EXP(ETA(2)) IF(DOSN.EQ.3)F1=1EXP(ETA(3))The model can be implemented using implied selection as follows: $ABBR REPLACE ETA(DOSN)=ETA(0,2,3) $PK .... F1=1 IF (DOSN>1) F1=1*EXP(ETA(DOSN))- Replacement with selection by data item and parameter
$ABBR REPLACEVAR(p_d)=VAR(n1,n2,..,nk) p is a user-defined variable in the abbreviated code. The order may be p_d or d_p This allows a given data item d to be used as a selection variable for more than one parameter, with a different choice of elements of VAR.
Example 1: $ABBR REPLACE THETA(SID_KA)=THETA(4,6) $ABBR REPLACE THETA(SID_CL)=THETA(5,7) ... $PK KA=THETA(SID_KA) CL=THETA(SID_CL) which is equivalent to $PK IF (SID==1) KA=THETA(4) IF (SID==2) KA=THETA(6) IF (SID==1) CL=THETA(5) IF (SID==2) CL=THETA(7)The number of values specified for the selection data item must be consistent for all parameters in which it is used.Example 2: $ABBR REPLACE ETA(OCC_CL)=ETA(5,3) $ABBR REPLACE ETA(OCC_V) =ETA(6,4) ... $PK CL=TVCL*EXP(ETA(1)+ETA(OCC_CL)) V =TVV *EXP(ETA(2)+ETA(OCC_V)) which is equivalent to $PK IF (OCC==1) CL=TVCL(EXP(ETA(1)+ETA(5)) IF (OCC==2) CL=TVCL(EXP(ETA(1)+ETA(3)) IF (OCC==1) V=TVV(EXP(ETA(2)+ETA(6)) IF (OCC==2) V=TVV(EXP(ETA(1)+ETA(4))- Replacement for multiple variables
$ABBR REPLACEVAR(p1,p2,…,pk)=VAR(n1,n2,…,nk) This form is new to NONMEM 7.4. The pi are character strings separated by commas. A character string may not contain an embedded space. The lists on both left and right sides must be of the same length. VAR(pi) is replaced by VAR(ni). For example,
$ABBR REPLACE THETA(CL,V1,Q,V2)=THETA(1,2,3,4)Label substition occurs with this form, as with Simple replacement (1). Short-hand notation A short-hand notation may be used to describe a series of values of ni. An ascending sequence of ni can be described as ,start TO end [BY interval] BY is optional and must be > 0. Default is 1. TO is required. If end < start, the sequence is ignored. At least one comma must appear, so NMTRAN knows it is a number list, not a variable name. With NONMEM 7.4, the character : may be used instead of TO, and the value of BY may be negative. EXAMPLES:This is equivalent to: $ABBR REPLACE THETA(CL)=THETA(1) $ABBR REPLACE THETA(V1)=THETA(2) $ABBR REPLACE THETA(Q)=THETA(3) $ABBR REPLACE THETA(V2)=THETA(4)$ABBR REPLACETHETA(SID_KA)=THETA(10:4 by 3) ; order: 10,7,4$ABBR REPLACETHETA(SID_KA)=THETA(4 to 10 by -3) ; order: 10,7,4$ABBR REPLACETHETA(SID_KA)=THETA(10 to 4) ; order: 10,9,8,7,6,5,4Files$ABBR REPLACE THETA(SID_KA)=THETA(,4 to 13 by 3,25 to 37 by 4) is identical to $ABBR REPLACE THETA(SID_KA)=THETA(4,7,10,13,25,29,33,37)FORIGandFREPLWhen$ABBR REPLACEis coded, NM-TRAN produces two files:FORIGContains the original (pre-replacement) abbreviated code, and task specification records$TABLEand$SCATTER.FREPLContains the new (post-replacement) abbreviated code and task specification records. These may be helpful for debugging. - Simple replacement
DECLARE[INTEGER] [DOWHILE] name [(dimension [,dimension])] …-
One or names may be coded. They are referred to as “declared variables.” IF
INTEGERorDOWHILEis coded, the type of the variable is integer. Otherwise, the type of the variable is double precision. If one or two dimensions are declared, the variable being declared is an array. Each dimension may be a number or a variable or an expression. Constants defined inSIZES(e.g., NO, LVR) may be used. MultipleDECLAREoptions may be coded. The characters “DECLARE” are optional after the first. Commas are ignored, and type and dimensions must be respecified as needed. No other options of$ABBRmay appear after theDECLAREoption(s). Declared variables are global, i.e., are defined in all blocks of abbreviated code. The number of subscripts must agree with the number of dimensions in the declaration. Declared variables that are notINTEGERorDOWHILEwill be random variables if they are assigned in a statement whose rightside involvesETA’s orEPS’s. EXAMPLE:Only I is$ABBR DECLARE A,B(10),C(1,NO-1),INTEGER I JINTEGER. Variables may be declared asINTEGERorDOWHILEfor use as subscripts of declared arrays or reserved variables that are arrays (but not ofETA,ERR, orEPS). Variables used as looping indices inDOWHILEstatements must be declared asDOWHILEvariables. Declared variables are automatically initialized to 0. Elements of a declared array may be displayed inWRITE/PRINTstatement, but not the entire array. E.g., the following is permittedPRINT,B(1),B(2) but notPRINT,B Neither individual elements nor the entire array may be listed in$TABLE. The workaround is to code, e.g., … code assigning values to B(1) etc. …B1=B(1)$TABLE B1(See dowhile block). PROTECT-
With NONMEM 7.4, a series of routines are available that protect against domain violations, divide by zero, and floating point overflows. Each of these routines start with the letter P, followed by the name of the mathematical operation they are to perform. For example,
PLOGis the protective code routine that performs the LOG operation. With$ABBR PROTECT, NMTRAN will automatically replace all relevant function names with the P name. (See protect functions). FUNCTION function_name(input_vector_name,dimension[,usage])-
With all versions of NONMEM since NONMEM VI, user-supplied functions are permitted in abbreviated code with reserved names such as
FUNCA,FUNCB, …, and argument vectors with reserved names such asVECTRA,VECTRB, ….. With NONMEM 7.4, extended reserved names are recognized. These are FUNCxy and FUNCxyz, where each of x, y, z stands for an alphabetic character A-Z, e.g.,FUNCABorFUNCABC. Similar extended reserved names for vectors are also recognized: e.g,VECTRABorVECTRABC. Reserved argument vectors and arrays have dimension 9 and each reserved function may appear in abbreviated code at most 9 times. (See Abbreviated Function). In NONMEM 7.4 the$ABBR FUNCTIONoption allows user-defined function names and user-defined argument vector names. The dimensions of the argument vector and the maximum number of times a given function name may appear in abbreviated code is user-specified. A user-defined function may be declared as follows:$ABBR FUNCTIONfunction_name(input_vector_name,dimension,usage) - function_name
- is the name of the function.
- input_vector_name
- is the name of an input vector that may be used to pass arguments to the function.
- dimension
- specifies how many input arguments function_name will use, and defines input_vector_name as a vector with this length. “Dimension” is a property of both the function and of the input vector.
- usage
-
is the maximum number of times the function may appear in the abbreviated code, that is, the maximum number of occurances of function_name. It is not an error if there are fewer occurances. If usage is omitted, NMTRAN will supply the exact number. If usage is coded, NMTRAN will generate an error message if function_name appears in abbreviated code more than “usage” number of times.
A vector and its length may be declared independently of a function,
$ABBR VECTORinput_vector_name (dimension) - input_vector_name
- is the name of an input vector.
- dimension
-
The length of the vector. The dimension of a vector should be no less than the dimension of all the functions which which it is used.
Example:
A vector VBI is defined of length 5. There is a function called
$ABBR FUNCTION BIVARIATE(VBI,5,3)BIVARIATE. WhenBIVARIATEis used, the value 5 is passed to it as argumentNDIM.BIVARIATEuses 5 elements from the input vector. FunctionBIVARIATEmay appear in abbreviated code at most 3 times.BIVARIATEshould be present in a source code file listed in the$SUBROUTINESrecord:$SUBROUTINES OTHER=filenameInstructions for coding both reserved functions and user_defined functions are in Abbreviated Function. Here is an example of abbreviated code that uses BVI andBIVARIATE:$PK… VBI(1)=RHO VBI(2)=5 VBI(3)=6 VBI(4)=1 ;0 = Upper tail as in Drezner & Wesolowsky ; 1 = Bottom tail; VBI(5)=1 ;0 = 3 pt approximation ; 1 = 5 point approximation;BV=BIVARIATE(VBI) There is a fully worked out example. (See bivariate function). Files are in the examples directory: bivariate.ctl, bivariate.csv, bivariate.f90. By default, there may be up to 100 different user-defined functions, which includes functions with reserved names and user-defined names. There may also be up to 100 different vectors of input arguments, which includes vectors with reserved names and user-defined names. ConstantsNFUNCXandNVECXinSIZESmay be used to change these numbers. It is preferable that a unique vector should be associated each function to assure that each vector-function pair are set up with comparable dimensions. This is not necessary. Any user-defined vector or function may be used with any reserved vector or reserved function, subject to the same restriction. For example:$ABBR FUNCTION BIVARIATE(VBI,5) $ABBR FUNCTION BIVARIATEQ(VQI,10)In abbreviated code, any of the following are permitted: BVI=BIVARIATE(VBI) BVQ=BIVARIATE(VQI) BVQI=BIVARIATEQ(VBI) BVQQ=BIVARIATEQ(VQI)This is because vector VBI has dimension 5 and functionNM-TRAN gives a warning: (WARNING 133) DIMENSION OF VECTOR IS LESS THAN WHAT IS EXPECTED BY FUNCTION BVQI=BIVARIATEQ(VBI(001),FNC002_1(1,001),FNC002_2(1,1,001),10)BIVARIATEQwas declared with dimension 10. Note that the results will be correct ifBIVARIATEQdoes not use more than 5 positions in the argument vector.
A vector and its length may be declared independently of a function, and vice versa. The asterisk is used as a placeholder, e.g.,
$ABBR FUNCTION BIVARIATE(*,5); when BIVARIATE is called, NDIM will be 5 $ABBR FUNCTION BIVARIATEQ(*,10) ; when BIVARIATEQ is called, NDIM will be 10 $ABBR VECTOR VQI(15)
The $ABBREV FUNCTION record may be used to override the default settings for any of the reserved function or vectors. For example,
$ABBR FUNCTION FUNCA(VECTRA,25,5)VECTRA will be defined with length 25, not 9 as for a reserved function. The code for the function should have NDIM as an argument: FUNCTION VECTRA(X,X1,X2,NDIM)
NDIM should be used instead of 9 for vector and array dimensions, as shown in the Abbreviated Function help item.
REFERENCES: Guide IV, section III.B.7 , IV; Guide Introduction_7
2 $AES
MEANING: Marks the beginning of abbreviated code for the AES routine
CONTEXT: NM-TRAN Control Record
USAGE:
$AESabbreviated code
DISCUSSION:
The $AES record is used to compute algebraic expressions which can be regarded as specifying equilibrium kinetics. It is used with PREDPP’s ADVAN9 and ADVAN15 and ADVAN17. (See $AESINITIAL). General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
E(ncm1+1), E(ncm1+2), … (Required. Expressions which, when set to 0, constitute the system of algebraic expressions describing the equilibrium kinetics. ncm1 is the number of nonequilibrium compartments.) The indices “(…)” may be omitted, in which case NM-TRAN will supply them according to the order in which the expressions appear. Indices are required when the expressions are defined conditionally (i.e., using an IF statement).
AES-defined (i.e., PRED-defined) items.
Right-hand quantities in assignment statement and in conditions:
A(1), A(2), … (Current compartment amounts; may be random variables.)
P(1), P(2), … (Post-translation basic PK parameters; may be random variables.)
PK-defined items (Implicit basic PK parameters; may be random variables.)
T (Time; may be random variable. T takes values continuously over an integration interval.)
AES-defined variables that appeared earlier as left-hand quantities in $AES, and similarly from the $AESINITIAL record. (Caution: AESINITIAL-defined variables that depend on compartment amounts will depend on the initial values of these compartment amounts, not the current values.)
Data item labels specified on the $INPUT statement.
THETA(n).Global Variables in Modules
Certain variables in FORTRAN modules can be used. (See Variables_in_Modules) The following are of particular interest.
DOSTIMDOSTIM is the time of a lagged dose or additional dose to which the system is being advanced. Abbreviated code in $AES may test DOSTIM. It may use DOSTIM on the right, unless DOSTIM is a random variable. However, it may be used on the right in a $PK block to define a random variable which may in turn be used on the right in the $AES block.
DOSRECDOSREC is the dose record corresponding to the dose entering at DOSTIM. Abbreviated code in $AES may test items in DOSREC in a logical condition, and DOSREC may always be used on the right.
ISFINLDuring simulation or a copying pass, and during the advance to a particular time (event or non-event time), ISFINL=1 at a final call to AES at that time. Otherwise, ISFINL=0.
Forbidden Variable Names:
IR DA DP DT ETA(n) EPS(n) ERR(n)RECORD ORDER:
Follows $SUBROUTINES $INPUT $MODEL $PK Follows $AESINITIAL
(See aes, advan9_15, advan9_17).
REFERENCES: Guide IV, section V.C.9; Guide VI, section VI.E
3 $AESINITIAL
MEANING: Marks the beginning of abbreviated code for the AES routine
CONTEXT: NM-TRAN Control Record
USAGE:
$AESINITIALabbreviated code
DISCUSSION:
The $AESINITIAL record is used to compute the amounts in the equilibrium compartments at the beginning of an integration interval. It is used with PREDPP’s ADVAN9, ADVAN15, and ADVAN17. May also be coded $AES0. (See $AES). General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
A(ncm1+1), A(ncm1+2), … (Required. The amounts in the equilibrium compartments at the beginning of the integration interval. ncm1 is the number of nonequilibrium compartments.)
INIT (Initialization flag.)
INIT=0: The A(n) are approximate.
INIT=1: The A(n) are exact (the default).AESINITIAL-defined (i.e., PRED-defined) items.
Right-hand quantities in assignment statement and in conditions:
A(1), A(2), … (Current compartment amounts; may be random variables.)
P(1), P(2), … (Post-translation basic PK parameters; may be random variables.)
PK-defined items (Implicit basic PK parameters; may be random variables.)
T (Time at the beginning of the integration interval; may be random variables.)
AESINITIAL-defined items that appeared earlier as left-hand quantities.
Data item labels specified on the $INPUT statement.
THETA(n).- Global Variables in Modules
- Certain variables in FORTRAN Modules can be used. (See Variables_in_modules)
Forbidden Variable Names:
IR DA DP DT E(n) ETA(n) EPS(n) ERR(n)
PSEUDO ASSIGNMENT STATEMENTS
COMRES=-1
CALLFL=-1: Call ADVAN and AES with every event record (default).
CALLFL=1: Call ADVAN and AES once per individual record.(CALLFL may be used only when the TIME data item is not defined.) The pseudo assignments statements may be enclosed in parentheses. If both are present within the same set of parentheses, separate them with a semicolon. Within parentheses, a calling protocol phrase may be used instead of CALLFL, and either upper or lower case may be used. E.g., $AESINIT (ONCE PER IR) ; same as CALLFL=1 $AESINIT (EVERY EVENT) ; same as CALLFL=-1 (default)
(See calling protocol).
RECORD ORDER:
Follows $SUBROUTINES $INPUT $MODEL $PK Precedes $AES
REFERENCES: Guide IV, section V.C.8; Guide VI, section VI.E
4 $ANNEAL
MEANING: Sets starting diagonal Omega values to facilitate EM search methods
CONTEXT: NM-TRAN Control Record
USAGE:
$ANNEAL number-list1:value1 number-list2:value2 …
SAMPLE:
$ANNEAL 1-3,5:0.3 6,7:1.0DISCUSSION:
Sets starting diagonal Omega values for purposes of simulated annealing by NONMEM subroutine CONSTRAINT.
In the above example, initial values of OMEGA(1,1), OMEGA(2,2), OMEGA(3,3), and OMEGA(5,5) are set to 0.3, while initial OMEGA(6,6) and OMEGA(7,7) are set to 1.0.
A number-list may contain a single integer, a range of integers (with -), or a series of integers and ranges separated by comma. Required.
A value may be any numeric value. Optional; default is 0.
When $EST CONSTRAIN>=4, an algorithm in subroutine CONSTRAINT will initially set the omegas to these values, and then shrink these OMEGA values more and more with each iteration, and eventually shrinks the OMEGA’s to 0, the intended target value for that Omega. This is a technique that may be used especially with SAEM, to provide an annealing method for moving thetas that have 0 omega values associated with them. The default is the use of gradient methods, which are good for problems starting near the solution, whereas the annealing method is more suitable for problems starting far from the solution.
Subroutine CONSTRAINT obtains values entered via $ANNEAL record in the array OMEGANNL. Any value that is set to 0 in $ANNEAL is given the default value of .3.
This record is optional. If omitted, the starting values of Omega are those specified in the $OMEGA record.
NONMEM’s default CONSTRAINT.f90 is identical to Subroutine source/CONSTRAINT.f90.
See INTRODUCTION TO NONMEM 7, $ANNEAL to facilitate EM search methods
REFERENCES: Guide Introduction_7
5 $BIND
MEANING: Define data values used by $PK, $DES, and $AES
CONTEXT: NM-TRAN Control Record
USAGE:
$BIND [value1] [value2] …
DISCUSSION:
$BIND is optional. It may be used when $PK abbreviated code is present and this code requests that the PK subroutine be called at additional or lagged dose times (CALLFL=-2). It is used to override the default values of user-defined variables used in the code when the PK routine is called at these particular dose times. It is also used to override the default values of user-defined variables used in $DES and $AES abbreviated code during an advance to an additional or lagged dose time.
$BIND has no effect when PK is called at a model event time (MTIME).
Let t be a time at which an additional or lagged dose enters the system. If t1 is the greatest event time not exceeding the time t, then the “last event record” is the last event record with event time t1, and the “next event record” is the event record following the last event record. (The term “last” is similar to the word “previous” in this context.) The event time on the next event record will exceed time t.
OPTIONS:
The positions of the values correspond to the positions of data items
- in the
$INPUTrecord in a 1-to-1 manner. Each value is one of: -
DOSE(Use the value from the dose record.)NEXT(Use the value from the next event record.)LAST(Use the value from the last event record.)SKIP(Ignore this data item.)DROP(Ignore this data item.) - (Default.)
For user (concomitant) data items, the default is NEXT but any of DOSE, NEXT, LAST may be specified.
For the PREDPP data item TIME, the default is NEXT. Only - or NEXT may be specified.
For all other PREDPP or NONMEM data items, the default is DOSE. Only - or DOSE may be specified.
Option DROP in the $BIND record is optional. It is ignored by NM-TRAN, but helps the user maintain a 1-to-1 relationship between positions in $BIND and positions in $INPUT.
A $BIND record with all defaults specified, such as $BIND - - - - - - - has the same effect as if no $BIND record were present.
EXAMPLE:
$INPUT ID TIME DATE=DROP AMT DV WGT PREP X HGT
$BIND - - DROP - - NEXT DOSE LAST -ID, AMT, DV have the values from the initiating dose record. TIME has the value from the next event record. WGT and HGT have values from the next event record. PREP has the value from the initiating dose record. X has the value from the last event record. This record will be the dose record if there is no other event record between the dose record and the next event record.
$INPUT and $BIND records can be interleaved to help maintain a visual relationship. The above example could have been coded:
$INPUT ID TIME DATE=DROP
$BIND - - DROP
$INPUT AMT DV WGT PREP X HGT
$BIND - - NEXT DOSE LAST -$BIND may not specify a position beyond the last position defined via $INPUT. It may specify fewer positions, in which case defaults apply to the remaining data items.
Changes to $BIND, like changes to $INPUT, cause changes to generated code. Thus, an existing NONMEM executable cannot be re-used when the $BIND and/or $INPUT records are changed.
The $BIND record only applies under the following circumstances:
- There exists a dose that is either one or both of the two follow-
: ing types of doses:
An additional dose, subsequent to the initiating dose (
ADDL>0,II>0 in the dose event record). Such a dose enters the system at the “additional dose time.”A lagged dose. (with the corresponding dose event record, PK specifies ALAGi>0, where i is the index of the dose compartment). Such a dose enters the system at the “lagged dose time.”
- The PK subroutine computes parameters that depend on values in
: the data record which are not constant for the individual, i.e., parameters depend on time-varying data items.
- The PK subroutine is called when the dose enters the system.
: That is, $PK contains the pseudo-statement CALLFL=-2, requesting that the PK routine be called to compute values of the PK parameters at additional and lagged dose times. When $PK does not contain this pseudo-statement, there is no such call, and at an additional or lagged dose time, the PK parameters have those values computed with the next event record.
When the $PK code is implemented with an event record, the variable DOSTIM is 0. When it is implemented at an additional or lagged dose time, the value of this variable is the time in question. By default, data items used in abbreviated code have values from either the initiating dose record (DOSREC) or the next event record (EVTREC), according to this rule:
NONMEM data items and PREDPP data items (other than TIME) have values from the original dose event record (DOSREC). These are:
DV MDV ID L2 MRG_ RAW_ REPL_ EVID AMT RATE SS II CMT PCMT CALL CONT
ADDL DATE DAT1 DAT2 DAT3TIME and all user-defined data items have the values from the next event record (EVTREC). This default can be overridden using the $BIND record.
The $BIND record is a convenience; it does nothing that cannot be accomplished with abbreviated code. Suppose X is a user-defined data item. The following three fragments of code create a variable XB with the same values at calls with additional and lagged doses that X would have if there were a $BIND record specifying the following for X.
DOSE:
IF (DOSTIM.EQ.0) THEN
XB=X
ELSE
XB=DOSREC(X)
ENDIFNEXT:
XB=XLAST:
IF (DOSTIM.EQ.0) THEN
XB=X
ENDIF
In this case, when DOSTIM>0, XB retains its value from the previous
call to PK.(See bind example).
REFERENCES: Guide IV, section V.C.2 , V.C.5
6 $CHAIN
MEANING: Supplies initial estimates for an entire problem
CONTEXT: NM-TRAN Control Record
USAGE:
$CHAIN [FILE=filename]
[FORMAT=s] [ORDER=xxxf]
[NOTITLE=[0|1]] [NOLABEL=[0|1]]
[ISAMPLE=n][NSAMPLE=n]
[SEED=n]
[CLOCKSEED=[0|1]]
[SELECT=n]
[RANMETHOD=[n|S|m] ]
[CTYPE=[0|1|2|3|4]]
[DF=n]
[DFS=n]
[IACCEPT=x]
[TBLN=n]SAMPLE:
$CHAIN FILE=example1_previous.txt NSAMPLE=0 ISAMPLE=-1000000000
DISCUSSION:
Option METHOD=CHAIN of the $ESTIMATION record will only set thetas, omegas, and sigmas for initial values of the estimation process. Its scope is therefore limited in that it will not impact the parameters used in simulating data for the Simulation step. To introduce initial THETAs omegas and sigmas that will cover the entire scope of a given problem, use the $CHAIN record.
The options have the same meanings as for the $ESTIMATION record. Setting SEED or CLOCKSEED or RANMETHOD in a $CHAIN record does not propagate to $EST METHOD=CHAIN or any other $EST record. (See $ESTIMATION_record_options). (See $ESTIMATION_record).
REFERENCES: Guide Introduction_7
7 $CONTR
MEANING: Defines values for certain user-supplied routines
CONTEXT: NM-TRAN Control Record
USAGE:
$CONTR DATA=([label1|0] [label2|0] [label3|0])
The data item with the Jth label (J=1,2,3) and from the Ith observation record of an individual record is available in DATA(I,J). If 0 is used instead of a label, then a zero appears in DATA(I,J).
SAMPLE:
$CONTR DATA=(0,TYPE)DISCUSSION:
Optional. Used only with user-supplied routines such as MIX and CONTR and CCONTR that use data items stored in the DATA array. This record gives labels (or synonyms) defined in the $INPUT record of one to three types of data items to be made available to the subroutine(s) in the DATA array. These routines are called with individual records. An array DATA is available in NONMEM module ROCM_REAL and changes value with each individual record.
With the above sample $CONTR record, the following code might be present in a double precision MIX routine. The code loops through the observation records of the NREC’th individual record. For each of the NOBS observation records, the local variable TYPE is given the value of the TYPE data item from that data record. The 0 in the sample is a place-holder which causes the first column in the DATA array to be skipped. The value of TYPE for the Ith observation record is therefore available in DATA(I,2). The DATA array is found in ROCM_REAL. NO is a constant giving the maximum number of observations per individual record. NOBS is the number of observations in the current individual record. (See sizes).
USE SIZES, ONLY: NO,DPSIZE
USE ROCM_REAL, ONLY: DATA=>RDATA
USE ROCM_INT, ONLY: NOBS=>NOBSIND2
...
INTEGER I
REAL(KIND=DPSIZE) :: TYPE
...
DO 100 I=1,NOBS
TYPE=DATA(I,2)
...100 CONTINUE- …
REFERENCES: Guide IV, section III.B.4
8 $COVARIANCE, $COVR
MEANING: Instructions for NONMEM Covariance Step
CONTEXT: NM-TRAN Control Record
USAGE:
$COVARIANCE [SPECIAL] [MATRIX=] [PRINT=[E][R][S]
[COMPRESS]
[SLOW|NOSLOW|FAST]
[TOL=n] [ATOL=n]
[SIGL=n] [SIGLO=n]
[NOFCOV]
[PARAFILE=[filename|ON|OFF] [PARAFPRINT=n]
[THBND=n]
[SIRSAMPLE=[numberlist] [SIRNITER=n] [SIRCENTER=n]
[IACCEPT=x] [IACCEPTL=x]
[SIRDF=n] [RANMETHOD=[n|S|m|P] ]
[SIRPRINT=n] [FILE=filename] [FORMAT=s]
[SIRTHBND=n]
[SIRMINWT=x] [SIRMAXWT=x] [SIR_CAPCORR=x]
[SIRSEED=n] [SIRCLOCKSEED=[0|1]]
[SIRPARAFILE=[filename|ON|OFF] [SIRPARAFPRINT=n]
[PRECOND=n] [PRECONDS=TOS] [PFCOND=n] [PRETYPE=n]
[FPOSDEF=n]
[CHOLROFF=n] [KNUTHSUMOFF=n]
[POSDEF=n]
[RESUME]
[CONDITIONAL|UNCONDITIONAL]
[OMITTED]SAMPLE:
$COVARIANCEDISCUSSION:
Optional. Requests that the NONMEM Covariance Step be implemented. This step outputs: standard errors, covariance matrix, inverse covariance matrix, and the correlation form of the covariance matrix. May also be coded $COVR.
If $COV is specified, then for IMP, IMPMAP, and ITS methods, standard error information will be supplied for every $EST statement. Standard error information for the classical methods (METHOD=0, METHOD=1) will be given only if they are the last estimation method, and only if NOFCOV is not specified.
OPTIONS:
SPECIAL-
The special computation will be used in the Covariance Step with a recursive
PREDsubroutine. A recursivePREDsubroutine is such that, with single-subject data, thePREDcomputation with a data record depends on information passed to it with any of the previous data records. This is the default when PREDPP is used. MATRIX=c-
Specifies that the covariance matrix will be different from the default (R sup -1 S R sup -1).
MATRIX=Rrequests that 2 times the inverse R matrix be used.MATRIX=Srequests that 4 times the inverse S matrix be used. (R and S are two matrices from statistical theory, the Hessian and Cross-Product Gradient matrices, respectively.) WithMATRIX=Rthe standard errors will be more consistent with other nonlinear regression software implementations.MATRIX=Rshould not be used with optionSPECIAL.MATRIXhas no relevance to the Covariance step results for aBAYESmethod. PRINT=[E][R][S]-
Additional outputs will be printed besides the defaults. E: print the eigenvalues of the correlation matrix. R: print the matrix .5R. S: print the matrix .25S.
PRINT=R(or S) is not needed withMATRIX=R(or S). COMPRESS- Covariance Step arrays are printed in compressed format, even if their size is such that NONMEM would normally print them in the usual format.
SLOWRequests a slower method of computation. Required when either a-
mixture model was used along with
CENTERINGon the$ESTIMATIONrecord, orNUMERICALwas used on the$ESTIMATIONrecord. If not present, the option will be automatically supplied in these two cases. NOSLOW-
Requests a faster method of computation. This is the default (but see
SLOW). FAST(NM74)-
This is equivalent to
FASTfor the$ESTrecord. record. If$EST FASTis set, then$COVwill be set toFAST, unlessSLOWorNOSLOWis specified. TOL=n(NM72)-
Tolerance. Used only with General Nonlinear (differential equation solver)
ADVAN’s. SetsNRD=TOL. By default, the value set on$SUBROUTINESrecord (or$TOLor TOL subroutine) is used. If TOL is coded on$COVARIANCE, it overides the default. With NONMEM 74, this feature is deprecated. A user-supplied TOL subroutine should testNM_STEPand set NRD accordingly. TOL has no relevance to the Covariance step results for aBAYESmethod. ATOL=n(NM72)-
Absolute tolerance. Used only with
ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADVAN16,ADVAN17,ADVAN18, for which TOL is a relative tolerance. SetsANRD=ATOL. The default is 12 (that is, accuracy is 10**(-12)). Usually the problem runs quickly when using this setting. On occasion, however, you may want to reduceATOL(usually set it equal to that of TOL), and improve speeds of up to 3 to 4 fold. By default, the value set on$SUBROUTINESrecord (or$TOLor TOL subroutine) is used. IfATOLis coded on$ESTIMATION, it overrides the default for that step. IfATOLis coded on$COVARIANCE, it overrides$ESTIMATIONand/or the default for that step. With NONMEM 74, this feature is deprecated. A user-supplied TOL subroutine should testNM_STEPand setANRDaccordingly. SIGL=n SIGLO=n(NM72)-
These options may be used to specify different values for the Covariance step. The step size for evaluating the R matrix (central difference second derivative) is set to
SIGL/4. If only the S matrix is evaluated (central difference first derivative), the step size is set toSIGL/3.SIGLOis the precision to which individual etas are optimized. Classical NONMEM methods in particular often require a different significant digits level of evaluation (usually more stringent) during the Covariance step than during Estimation Step. For example, during the Estimation step,NSIG=2,SIGL=6,TOL=6may be sufficient, but during the Covariance step, you may needSIGL=12TOL=12to avoid positive definiteness issues. By default, values specified on the$ESTIMATIONrecord are used. (See$ESTIMATION).SIGLandSIGLOhave no relevance to the Covariance step results for aBAYESmethod. NOFCOV(NM72)-
No
$COVstep for any classical estimation steps. This would be useful if you wanted EM estimation analyses performed, and a finalFOCEanalysis performed, but did not want the program to spend time on standard error assessments forFOCE, which can take a long time relative to the other methods. PARAFILE=filename-
Name of the “parallel file” (the parallelization profile) that controls parallelization (distributed computing). Default file name if not specified: parallel.pnm or parafile name specified on nmfe command.
PARAFILE=ONturns on parallelization for this$COVARIANCErecord.PARAFILE=OFFturns off parallelization for this$COVARIANCErecord. PARAFPRINT=n(NM74)-
The print iteration intervals to the parallelization log file can be controlled by this option during parallelization of the
$COVstep. See also$ESTIMATIONrecord and nmfe7 command. Default isPARAFPRINT=1. THBND=n(NM74)-
If
THBND=1, any theta boundaries specified in the$THETArecord causes NONMEM to impose a non-linear transformation of the theta parameters so that the transformed parameters may vary from -infinity to infinity. It does this with logistic transformations. This is suitable during the estimation step, but may be desirable have this off (THBND=0) for covariance assessment, and assess partial derivatives of the objective function with respect to the thetas themselves, or some linear transformation of these thetas. By defaultTHBND=1, in keeping with the behavior of earlier NONMEM versions, which effectively hasTHBND=1. Usually boundaries that are fairly wide will not impact how the variancecovariance is assessed, such as when a lower bound of 0 is given, but if you have very narrow boundaries set, then this can impact the assessment of the variance-covariance of the estimates considerably, and you may wish to setTHBND=0. If no lower or upper bounds are given to thetas in$THETArecord, this option has no impact. SIRSAMPLE=[numberlist](NM74)-
Option
SIRSAMPLErequests the Sampling-Importance-Resampling algorithm (SIR) (See Guide Introduction_7, “Importance Sampling of the VarianceCovariance of the Parameter Estimates”). By defaultSIRSAMPLE=-1, so SIR process does not occur.SIRSAMPLEshould be set between 300 and 10000, to indicate the number of random samples to be generated for each of theSIRNITERiterations. This will produceSIRSAMPLEimportance samples, each of which will be placed in the raw output file. As of nm75,SIRSAMPLEmay contain a list of integers, one for each of theSRNITERiterations (use double quotes around the list):SIRSAMPLE="1000,200,500"If there are fewer thanSIRNITERvalues, the last value in the list will be used as theSIRSAMPLEvalue for the remaining iterations. Utility programs table_quant (frequency and quantile sorting) and table_resample (resampling) may be used to analyze$COVSampling-Importance-Resampling data. SIRNITER=n(NM74)- The number of times SIR sampling should occur. Default is 1.
SIRCENTER=n(NM74)-
Where the sampling (proposal) density is to be centered. On the first iteration, the mean of the sampling density is at the estimate. On subsequent iterations, the mean of the sampling density is at the estimate (
SIRCENTER=0) or at the mean of the (transformed) samples of the previous iteration (SIRSAMPLE=1). Default is 0. SIR_CAPCORR=x(NM75)-
Limit the correlation of omegas and sigmas generated form the proposal density to have |correlation| of
SIR_CAPCORRor less. This is similar to PSN’s cap_correlation option.
SIRMINWT=x (NM75)SIRMAXWT=x(NM75)-
Limit the weight range that a sample may relative to the proposal density, to avoid extreme values. Default values are
SIRMINWT=0.001,SIRMAXWT=1000.0 SIRSEED=n(NM75)- Starting seed for SIR analysis (default=11456).
SIRCLOCKSEED=[0|1](NM75)-
If
SIRCLOCKSEED=1(default is 0), actual starting seed will be 10000*(seconds after midnight)+SEED. This allows a control stream to produce different stochastic results for automated replications, without the need to modify the seed value in the control stream file in each replication. IACCEPT=x(NM74)- The acceptance ratio acts similarly to importance sampling in EM analysis. Default is 1.
IACCEPTL=x(NM74)-
IACCEPTL=0(NM74) Default is 1. TheIACCEPTLoption performs the same as listed forIACCEPTLin “Monte Carlo Importance Sampling EM”. Default is 0. SIRDF=n(NM74)- The proposal density is to be a t distribution with n degrees of freedom. Default is 0, a normal density.
RANMETHOD=[n|S|m|P](NM74)-
See the corresponding option of the
$ESTIMATIONrecord for importance sampling in EM analysis. SIRPRINT=n(NM74)-
Set the console print iterations interval. This does not impact the iterations listed in the raw output file. Default
SIRPRINT=0. FILE=filename(NM74)-
By default, the raw output file is whatever was listed in the
$ESTstep, or root.ext, where root is the root name of the control stream file. You can re-direct SIR sample listings to an alternative file with this option. FORMAT=s(NM75)-
By default, the format for the raw output file and all additional output files is whatever
FORMATwas specified for the$ESTstep. You can change its format with theFORMAToption. s defines the delimiter [,|s(pace)|t(ab)] followed by a Fortran format specification. The default is s1PE12.5. For more details, see the format help item: (See format). SeeINTRODUCTIONTO NONMEM 7,FORMAT=s1PE11.4 SIRTHBND=n(NM74)-
As with the deterministic covariance assessment step, by default the transformed parameters are sampled, so that no sample is below the
$THETAlower bound specification, and no higher than the$THETAupper bound specification. To allow a boundariless search in the original theta domain, setSIRTHBND=1. You should also setTHBND=1, so that the deterministc covariance matrix used as the proposal density is also not hindered or contorted by the boundaries. Default is the value ofTHBND, which in turn is 0 by default. SIRPARAFILE=filename-
Name of the “parallel file” (the parallelization profile) that controls parallelization during SIR sampling (distributed computing). Default file name if not specified: parallel.pnm or parafile name specified on nmfe command.
SIRPARAFILE=ONturns on parallelization for this$COVARIANCErecord during SIR sampling.SIRPARAFILE=OFFturns off parallelization for this$COVARIANCErecord during SIR sampling. SIRPARAFPRINT=n(NM74)-
The print iteration intervals to the parallelization log file can be controlled by this option during parallelization of the SIR sampling portion of the
$COVstep. See also$ESTIMATIONrecord and nmfe7 command. Default isSIRPARAFPRINT=1. PRECOND=n(NM74)-
Options
PRECONDthroughPRETYPEaffect the preconditioning of the R Matrix. (See Guide Introduction_7, “Preconditioning the R Matrix to Improve Precision and Success Rate of$COVStep”). By default,PRECOND(Preconditioning cycles”) is 0, and no preconditioning of the R matrix is performed. WhenPRECOND=n, then up to n preconditioning cycles are performed. This is used in combination with thePFCONDsetting. PRECONDS=TOS(NM74)-
By default, if preconditioning is performed, it is done on Thetas (T), Omegas (O), and Sigmas(S). Specify
PRECONDS(Preconditioning types)=T to do only thetas,PRECONDS=TOto do only thetas and omegas, etc. PFCON=n(NM74)-
PFCONDmeans ‘forced’ precondition cycles. Preconditioning occurs exactlyPFCONDtimes, without testing if the R matrix is positive definite or not on each preconditioning cycle. On the remainingPRECOND-PFCOND cycles, the R matrix is tested for positive definiteness, and upon success, will terminate the preconditioning cycles. Default isPFCOND=0. PRETYPE=n(NM74)-
By default
PRETYPE(preconditioning type)=0 and the R matrix corrector is Vsquare_root(eigenvalue). If you setPRETYPE=1, then the corrector is Vsquare_root(eigenvalue)*Vtranspose. If you setPRETYPE=2, then the corrector is the correlation version ofPRETYPE=1. FPOSDEF=n(NM74)-
By default
FPOSDEF(forced positive definite)=0. IfFPOSDEF=1, then if the Rmatrix is not positive definite, it will be forced positive definite. IfPRECOND>0, this will occur after the PRECONDth try. CHOLROFF=n(NM74)-
If
CHOLROFFis set to 1, then one part of the R matrix evaluation (before inversion) will be evaluated in the manner of earlier versions of NONMEM. This is strictly for comparison with earlier versions for diagnostic purposes. IfCHOLROFF=0, then a part of the R matrix evaluation will undergo cholesky decomposition, and if not positive definite, only then will it undergo evaluation according to earlier versions of NONMEM. IfCHOLROFF=2, then if cholesky decomposition fails, it will be slightly adjusted to be positive definite. TheCHOLROFF=0is the safest option, in that the Cholesky decomposition (if positive definite) provides more precision in evaluating the R matrix. TheCHOLROFF=2setting is useful if you wish to increase the rate of success in obtaining an R matrix (followed by its inverse) that could be suitable for SIR sampling. If you useCHOLROFF=2, then positive definiteness has been corrected before the inverse occurs, soPOSDEFwill have no additional effect. If you usePOSDEF, thenCHOLROFFshould be 0 or 1. Default is 0. KNUTHSUMOFF=n(NM74)-
In NONMEM 7.4, the Knuth summing method is used to allow the most accurate summation of individual objective function values, even with large variations in values of the individual objective function. To turn this off, and allow a standard summation (not recommended except for comparison purposes from earlier versions), set
KNUTHSUMOFF=1. IfKNUTHSUMOFFwas set in the$ESTstep, but not in the$COVstep, theKNUTHSUMOFFvalue of the last$ESTrecord will be used. Default is 0. POSDEF=n(NM75)-
If
POSDEF=1, then if the R matrix is not positive definite, it will be forced positive definite, by method of shifting the eigenvalues by an amount slightly greater than the most negative eigenvalue. IfPOSDEF=2, then R matrix is made positive definite by making the negative valued eigenvalues approximately 1/100 of the least positive eigenvalue. IfPOSDEF=3, then R matrix is made positive definite by using the absolute values of the eigenvaluesPOSDEFis 0 (no correction) by default for classical covariance step, and 3 for EM methods. The preconditioning method is a more sophisticated, but time-consuming method of making the R matrix positive definite (SeePRECOND). Default is 0. CONDITIONAL-
The Covariance Step is implemented, but only when the Estimation Step terminates successfully (in this run or in a run continued via
$MSFI). This is the default. UNCONDITIONAL-
The Covariance Step is implemented regardless of how the Estimation Step terminates (in this run or in a run continued via
$MSFI). RESUME(NM73)-
If
MSFO=msfilewas specified in the Estimation Step for the FO/FOCE/Laplace method and analysis was interrupted during the Covariance Step, then the Covariance Step may be resumed where it was interrupted in a subsequent problem. Use the$MSFIrecord to specify theMSFOfile of the interrupted analysis, and theRESUMEoption of the$COVrecord:$MSFI=msfile …$COV RESUME OMITTED- The Covariance Step is not implemented.
EXAMPLE:
$COV UNCONDITIONAL TOL=10 SIGL=10 SIGLO=11REFERENCES: Guide IV, section III.B.15; Guide V, section 9.4.2 , 10.6
9 $DATA
MEANING: Describes the NM-TRAN data set
CONTEXT: NM-TRAN Control Record
USAGE:
$DATA [filename|*] [(format)] [IGNORE=c1] [NULL=c2]
[IGNORE=(list)...|ACCEPT=(list)...]
[PRED_IGNORE_DATA]
[NOWIDE|WIDE] [CHECKOUT]
[RECORDS=n1|RECORDS=label]
[LRECL=n2] [NOREWIND|REWIND]
[NOOPEN] [LAST20=n3] [TRANSLATE=(list)]
[BLANKOK]
[MISDAT=r...]
[FDATACSV...]
[REPL=n...]SAMPLE:
$DATA DATAFILEDISCUSSION:
This record specifies the data set to be used. It is required with the first problem specification. It must precede any other NM-TRAN control record that refers to specific data item types. May also be coded $INFILE.
Optional with the second or subsequent problem specifications. If omitted, NONMEM re-uses the data set from the previous problem (which will include any modifications made via transgeneration, e.g., via use of NONMEM’s PASS, or via simulation).
OPTIONS:
- filename
-
Name of the file containing the data set. Must be the first option. If it contains commas, semicolons, or parentheses, then it must be surrounded by single quotes ’ or double quotes “. Filename may also contain equal signs if it is enclosed in quotes. If the file is opened by NM-TRAN, filename may contain embedded spaces if it is enclosed in quotes, and may contain at most 80 characters. If the file is opened by NONMEM, the filename may not contain embedded spaces, and may contain at most 71 characters. If filename is the same as any option of the
$DATArecord, it must be enclosed in quotes.- may be coded in a problem subsequent to the first. This has the same effect as omitting the
$DATArecord (NONMEM is told to re-use the previous data set), but allows theCHECKOUToption to be included. With *, no other option may be included.
- may be coded in a problem subsequent to the first. This has the same effect as omitting the
(format)-
FORTRAN format specification to be used to read the data. Format codes F, E, and X may be used, but not I. When a format is provided, the label
DROPcannot be used on the$INPUTrecord and optionsWIDEandNULLmay not be coded. If omitted, NM-TRAN will generate a suitableFORMATspecification. RECORDS=n1-
The number of records to be read from the NM-TRAN data set. Comment records are not counted. If NM-TRAN does not drop any records from its data set (see
IGNORElist andACCEPTlist), then n1 is also the number of records written to the NONMEM data set. If NM-TRAN drops records, then the total number of records written to the NONMEM data set is n1 minus the number of dropped records. With NONMEM 7.5, records may also be dropped using thePRED_IGNORE_DATAblock of abbreviated code. The same total applies to these dropped record. SeePRED_IGNORE_DATA, below. If omitted, the records written to the NONMEM data set are all the records in the NM-TRAN data set up to the end-of-file (or up to a NONMEMFINISHrecord) minus the number of comment and dropped records. May also be codedNRECORDS,RECS, orNRECS. If the option is coded asRECORDS=label, where label is a data item label, NM-TRAN understands the data records for the problem to start with the first data record of the NM-TRAN data set (at the place where the file is positioned before data records are read; see theNOREWINDoption), and to include as well, those and only those subsequent contiguous data records having the same value of the data item as does the first record. It counts the total number of these data records, minus any comment or dropped records, and puts this number in the NONMEM control file. In particular, theIDlabel may be used (or alternatively, the option may be codedRECORDS=IR,RECORDS=INDREC, orRECORDS=INDIVIDUALRECORD). If a label other thanIDis used, the$INPUTrecord must precede the$DATArecord. If the data are single-subject data, theIDdata items used to determine the data records for the problem are those labeledID(not .ID.). If there is more than one problem specification with a$DATArecord that includes an option of the formRECORDS=label, then either none of these$DATArecords may also include a format specification, or all of them must include the same format specification. (See records=id). LRECL=n2- The number of characters in a logical record. Needed for certain operating systems (e.g., IBM/CMS).
IGNORE=c1-
[Note: The following two options,
IGNOREandACCEPTallow the user to drop records from the NM-TRAN data set prior to the run. With NONMEM 7.5, it is also possible to drop records from the NONMEM data set using abbreviated code, which is more flexible than the criteria that can be specified in the$DATArecord. SeePRED_IGNORE_DATA, below.] Specifies that any data record having the character c1 in column 1 should be ignored, i.e., these records are not included in the NONMEM data set. This allows comment records to be included in the NM-TRAN data set. In general, records having the character c1 in column 1 will be called “comment records”. Also permitted:IGNORE=‘c’ orIGNORE="c", where c may be any character except space.IGNORE=# is the default. That is, in the absence ofIGNOREoption, any record whose first character is # is treated as a comment record.IGNORE=@ signifies that any data record having an alphabetic character or @ as its first non-blank character (not just in column 1) should be ignored. Alphabetic characters are the letters A-Z and a-z. This permits a table file having header lines to be used as an NM-TRAN data set. IGNORE=(list)-
“List” is a list of one or more data item labels, with logical operators and values, of the form “label=value”, “label.EQ.value”, “label.NE.value”, “label.GT.value”, “label.GE.value”, “label.LT.value”, and “label.LE.value”. (Fortran 90 logical operators such as ‘==’ ‘/=’ ‘<’ ‘<=’ ‘>’ ‘>=’ ” may also be used.) Thus, the following are identical: “label=value”,“label==value”,“label.EQ.value”. With NONMEM 7.3, “label.NEN.value” and “label.EQN.value” are permitted. (There is no Fortran 90 operator for this comparison.) If the logical operator is omitted, the default is “=”. With each data record, the value of the data item with the given label and the value in the list are compared according to the logical operator, and if result is “true”, the record is ignored, i.e. it is not included in the NONMEM data set (see example below). Such records are called “dropped records”. With “=”, “==”, “/=’,”.EQ.” and “.NE.”, the value in the data record and the value in the list are compared as character strings. Otherwise, they are converted to numeric and compared numerically. (This is the case with .NEN. and .EQN.) This comparison is made prior to time translation. Hence, the
TIMEitem cannot be compared numerically if it contains non-numeric characters such as “:”. Note: if the data file is a table file from a previous NONMEM run, values that had been integers (0,1,..) in the original data file will be real values (0.0000E+00, 1.0000E+00, …) in the table file. A comparison for equality or inequality should now be for the real value. E.g.IGNORE=(OCC==1.0000E+00). With NONMEM 7 the default format for the table file isPE11.4, as in the examples above. TheFORMAToption of$TABLEmay be used to change this and the values used in a subsequentIGNOREwill have to be changed accordingly. The .NEN. and .EQN. operators that are described above will always work. A data item label along with a logical operator and value is called a condition. A list may contain several conditions; these should be separated by commas, and the list should be enclosed in parentheses. Up to 100 different conditions altogether can be specified.IGNORE=(list) may be used withIGNORE=c, where c is a character. MultipleIGNOREoptions with different lists may be used. A list may span one or more NM-TRAN records. The use of “=” afterIGNOREis optional, but parentheses are required with this form ofIGNORE. Values may be alphabetic or numeric, and may optionally be surrounded by single quotes ’ or double quotes “. Quotes are required if a value contains special characters such as =. However, a value may not contain spaces or commas. No format specification is permitted with this form ofIGNORE. A data item type may be dropped from the NONMEM data set by means of theDROPorSKIPsynonym on the$INPUTrecord, after records are dropped due to a condition based on the data item type. E.g.,$INPUT…GEN=SKIP…$DATAfileIGNORE=(GEN=‘M’) Records having GEN equal to ‘M’ will be dropped, and the GEN data item type will then be omitted from the NONMEM data set. A dropped data item may be any alphanumeric string (without a data item delimiter - a blank or a comma). If there is more than one condition, then records satisfying at least one of these conditions will be dropped. In effect, the conditions for dropping a record are connected by the implied conjunction “.OR.”. E.g.IGNORE=(GEN.EQ.1,AGE.GT.60). Records having GEN equal to 1 or AGE greater than 60 are dropped. All others are accepted. ACCEPT=(list)-
The
ACCEPTlist option is identical to theIGNORElist option, except that it specifies conditions for acceptance of records. AnACCEPTlist cannot be used together with anIGNORElist. However, it may be used withIGNORE=c, where c is a character. E.g.ACCEPT=(GEN.EQ.1,AGE.GT.60). Records having GEN equal to 1 or AGE greater than 60 are accepted. All others are dropped. Suppose it is desired that records be dropped that satisfy the logical “.AND.” of several conditions. This can be implemented by using anACCEPTlist with the negations of the conditions. For example, suppose that records to be ignored are those havingGEN=1.AND. AGE > 60. This may be done as follows:ACCEPT=(GEN.NE.1,AGE.LE.60) PRED_IGNORE_DATA(NM75)-
Informs NONMEM that a
PRED_IGNORE_DATApass through the data set is required. If the abbreviated code uses variablesPRED_IGNORE_DATAorPRED_IGNORE_DATA_TEST, this option is supplied. The explicit option is needed if the use of thePRED_IGNORE_DATAvariables occurs in user-written or verbatim code, so that NMTRAN is unaware of it. (See Guide Introduction_7 “Extension to$DATA IGNORE=stfiltering”) NULL=c2-
Specifies that null data items in the NM-TRAN data set are to be replaced in the NONMEM data set by the character c2. E.g.,
NULL=0orNULL=.. Null data items consist of a single dot (.) or consecutive commas or consecutive tab characters. c2 may be any character except space (” “) or semicolon (”;“). Also permitted:NULL=‘c’ orNULL="c", where c may be any character. If this option is omitted, NM-TRAN replaces each null with a space. NOWIDE-
Requests that NM-TRAN attempt to limit
FDATAto 80-character records. Space between adjacent columns may be suppressed and multi-line records may be generated. This is the default. WIDERequests thatFDATAcontain single-line records, and that at-
least one space separate columns. (Records in
FDATAwill never be wider than 300 characters.) With this option, there will be noFINISH(FIN) record in the NONMEM data set. NOREWIND|REWIND-
With the first problem specification in a control stream, the file is positioned at its initial point so that the first NM-TRAN data set in the file is used. The options
REWINDandNOREWINDapply only with a$DATArecord in a subsequent problem specification, and only when the file named on the record is the same as that specified for the previous problem. When the file named on the record is different from that specified for the previous problem, the file is (re)positioned at its initial point so that the first NM-TRAN data set in the file is used.REWIND: Reposition the file at its intial point so that the first NM-TRAN data set in the file is re-used. (Whether the file input to NONMEM itself will be repositioned depends on whether this file isFDATAor is one named in the$DATArecord; see NONMEM Users Guide, Part IV for a complete explanation.)NOREWIND: Leave the file at its current position so that the next NM-TRAN data set in the file is used. The$DATArecord with the previous problem specification must have included the RECORDS option (or aFINISHrecord must have terminated the data set used in the previous problem), so that NM-TRAN did not read to a physical end-of-file. This is the default. CHECKOUT-
Requests that NONMEM implement the data checkout mode, in which the
PREDroutine is not called and predictions, residuals, weighted residuals and the objective function are not computed. May also be codedCHECKDATA. No tasks other than$TABLEor$SCATcan be specified. With NONMEM 7.5, an additional file,FDATA.csvis produced that outputs the contents of its input data file (typicallyFDATA) in a comma delimited file format, so you can check how NONMEM inter-prets the input data. If theREPLoption of$DATAor theREPL_data item is used, the replicated form of the data will appear inFDATA.csv. NOOPEN-
NM-TRAN will not open the named data file. This permits the data file to be created by one problem and used in a subsequent problem of the same run. May not be used with options
IGNORE,DROP, or when data itemsID,MDV, orEVIDmust be generated by NM-TRAN. WithNOOPEN, a format specification is required. No day-time translation takes place. LAST20=n3-
Override the
LAST20constant in resource/TRGLOBAL.f90(default: 50). One or two digit years >LAST20are assumed to be in the 1900’s, One or two digit years <=LAST20are assumed to be in the 2000’s. E.g,. supposeLAST20=50. Then two digit years are interpreted as follows: 00-50 = 2000-2050 51-99 = 1951-1999LAST20=-1 can be used when two digit years span the year 2051. All two digit years will be assumed to be in the same century. If year is recorded with four digits, it is always processed correctly and the value ofLAST20is of no consequence. TRANSLATE=(list)-
“list” describes modifications to be made to the contents of the data file. It may contain one of:
TIME/F,TIME/F/D and/or one ofII/F,II/F/D F (“factor”) may be an integer or a real value. If F is a real number, the translated value inFDATAwill have the same number of digits after the decimal point. If F is an integer and D is omitted, there will be 2 digits. Alternately, the number of digits may be specified explicitly by D (“digits”). If D is a real number, it is truncated to integer. If D is specified as 0, it defaults to 2. The maximum value of D is 12. The number of digits that may be requested in F is limited by the precision of the computer.Another example isFor example, either of the following can be used to request values of TIME in FDATA that have 4 digits to the right of the decimal point: TIME/1.0000 TIME/1/4II/0.01/6 which dividesIIvalues by 0.01, and writes 6 digits to the right of the decimal point. If F is specified as “24” (or 24.0..), the options involvingTIME(II) can be used to convert the units of time (of the steadystate interval) from hours to days. TheTIME(II) data item is first processed as if the option were not present. Then the resulting value is divided by F. Note: The value ofTIMEis divided by F, whether or not day-time translation occurs (i.e., whether or not relative times are being computed by NM-TRAN). Similarly, the value ofIIis divided by F whether or not “:” appears in anyIIdata value. BLANKOK-
Specifies that blank lines are permitted in the NM-TRAN data set. With all versions prior to NONMEM VI 2.0 a blank line was permitted, and was copied to the NONMEM data set. A warning message was issued. With later versions, NM-TRAN stops with an error message when there is a blank line in the NM-TRAN data set. Option
BLANKOKrestores the previous behavior. There is no abbreviation.BLANKOKmust be coded in full. MISDAT=r(NM74)-
A numerical value indicating a missing data value in the data set, which is displayed on
$TABLEtable outputs, but is safely interpreted as 0 by other steps of NONMEM. May be used up to 20 times. Example:$DATAmydatafileMISDAT=1.0E-99MISDAT=1.0E-102. REPL=n(NM75)-
When the
REPL=noption of$DATAis coded, the NONMEM data set is considered to be a template data set. NONMEM itself replicates the template data set n times at the start of the problem to create an expanded NONMEM data set. (Note that the NONMEM data set is typically the fileFDATAgenerated by NM-TRAN. If there is nothing for NM-TRAN to change and the format is supplied on the$DATArecord, the file named on the$DATArecord is the NONMEM data set. See NONMEM Users Guide, Part IV.) TheREPLoption may be used with theREPL_data item. If both are used theREPL_data item applies first, and theREPLoption applies second. SeeREPL_data item. TheREPLoption andREPL_data item are meant to be used with$SIMULATIONor$DESIGN. For important information, see Guide Introduction_7 Section “$DATA REPL”. (See Guide Introduction_7 “Extension to$DATA IGNORE=stfiltering”) NOFDATACSV(NM760)-
An additional file,
FDATA.csvis produced that outputs the contents of its input data file (typicallyFDATA) in a comma input data. The records inFDATA.csvmay differ from those inFDATAin the following cases. IfREPL/REPL_is used, the replicated form of the data will appear inFDATA.csv. Also, records excluded byPRED_IGNORE_DATAwill not be present inFDATA.csv. The creation ofFDATA.csvcan cause a long period of data file loading and processing at the beginning of a run, if theFDATAfile is very large (such as >1 MB). As of nm760, the creation of this file can be prevented by adding the optionNOFDATACSVon the$DATArecord.
Another change in NONMEM VI 2.0 is that tab characters (and other characters that are smaller than blank in the computer’s collating sequence, such as carriage return ^M) are permitted in NM-TRAN input files. In the NM-TRAN data set they are treated like commas, i.e., as field delimiters. In the NM-TRAN control stream they are converted to spaces. They are left unchanged in verbatim code. With NONMEM 7, the last non-blank character on the line is replaced by a space if it is a low-value character.
Note: The character “:” in TIME or II data items requests day-time translation of TIME or II values. These values must have the form hh:mm (i.e., hours:minutes). With NONMEM 7.3, values may also have the form hh:mm:ss (i.e., hours:minutes:seconds). (See Guide IV, section II.C.2)
REFERENCES: Guide IV, section III.B.5; Guide V, section 6.4; Guide Introduction_7
10 $DEFAULT
MEANING: Specifies certain defaults for NONMEM
CONTEXT: NM-TRAN Control Record
USAGE:
$DEFAULT [NOSUB=[-1|0|1]]SAMPLE:
$DEFAULT NOSUB=1DISCUSSION:
$DEFAULT is optional. If present, it must appear following $PROB
Specifies certain defaults for NONMEM. If more than one $DEFAULT record is present in a given problem, the one used by NONMEM is the last one in the problem.
OPTIONS:
NOSUB=[-1|0|1]-
With
NOSUB=0, label substitution will be performed for all tasks in the problem. This is the default. (See$ABBREVIATED). WithNOSUB=1, label substitution will not be performed. WithNOSUB=-1, revert to NONMEM default, which is to treat -1 as a 0. If theNOSUBoption is also specified on a task specification record ($TABLE,$SCATTER), then this value ofNOSUBapplies only for the current task. When speficied on a$ESTrecord, the usual rule for options apply, in which the option varies carries into the next$ESTrecord in the problem unless otherwise re-specified.
May also be coded $DEFAULTS.
REFERENCES: Guide Introduction_7
11 $DES
MEANING: Marks the beginning of abbreviated code for the DES routine
CONTEXT: NM-TRAN Control Record
USAGE:
$DESabbreviated code
SAMPLE:
Suppose differential equations were used for ADVAN2, rather than the
analytic solution. The $DES block would be as follows:
$DES
DADT(1)=-P(3)*A(1)
DADT(2)=P(3)*A(1)-P(1)*A(2)DISCUSSION:
The $DES record is used to compute differential equations. It is used with PREDPP’s general non-linear models (ADVAN6, ADVAN8, ADVAN9, ADVAN13, ADVAN14, ADVAN15, ADVAN16, ADVAN17,ADVAN18). General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
DADT(1), DADT(2), … (Required. Derivative of each compartment amount with respect to time.)
It is important to note that PREDPP itself adds in the rates for any infusions that may be active. It is possible to introduce endogenous drug into a compartment by explicit terms in a differential equation, rather than by PREDPP dose event records. Drug introduced in this manner is not included by PREDPP in the computation of the output compartment.
DES-defined (i.e., PRED-defined) items.
Right-hand quantities in assignment statement and in conditions:
A(1), A(2), … (Current compartment amounts; may be random variables.)
P(1), P(2), … (Post-translation explicit basic PK parameters; may be random variables.)
PK-defined items (Post-translation implicit basic PK parameters; may be random variables.)
T (Time; may be random variable. T takes values continuously over an integration interval.) (Note that T may take values that are larger than the ending time of the interval.)
DES-defined items that appeared earlier as left-hand quantities in $DES.
Data item labels specified on the $INPUT statement may be used explicitly in DES and $DES abbbreviated code (rather than obtained as PK parameters). This may improve run time. As with $PK, values are those of the current event record (the event record to which the system is being advanced).
THETA(n).Fortran functions that are continuous, such as SIN and COS, may be used. The INT, MOD, and ABS functions (or other functions that introduce a discontinuity) should not be used in the $DES block. Instead, use model event times MTIME in the $PK block, and either set flag variables in $PK that can be tested in $DES, or use MPAST in the $DES block. See Appendix 3 of Guide VI PREDPP. Several examples are available for the use of MTIME with $DES. (See mtime, model time examples). (See Examples Using MTIME to Model Periodic Discontinuities in $DES). See step_circexa.ctl in the NONMEM examples directory. See idr_circexa.ctl in the NONMEM examples directory.
Global Variables in Modules Certain variables in FORTRAN Modules can be used. (See Variables_in_Modules) The following are of particular interest.
DOSTIMDOSTIM is the time of a lagged dose or additional dose to which the system is being advanced. Abbreviated code in $DES may test DOSTIM. It may use DOSTIM on the right, unless DOSTIM is a random variable. In this case, it may be used on the right in a $PK block to define a random variable which may in turn be used on the right in the $DES block.
DOSRECDOSREC is the dose record corresponding to the dose entering at DOSTIM. Abbreviated code in $AES may test items in DOSREC in a logical condition, and DOSREC may always be used on the right.
ISFINLDuring simulation or a copying pass, and during the advance to a particular time (event or non-event time), ISFINL=1 at a final call to DES at that time. Otherwise, ISFINL=0.
DES_DER, MITER, METH- See Diff Eq Solver Settings.
Forbidden Variable Names:
IR DA DP E(n) ETA(n) EPS(n) ERR(n)
PSEUDO ASSIGNMENT STATEMENTS
COMRES=-1RECORD ORDER:
Follows $SUBROUTINES $INPUT $MODEL $PK
DISPLAYED VALUESDES-defined variables may be listed for display in $TABLE or $SCATTER. The values displayed for the first event record of the data set are 0’s. The values displayed for the first event record of subsequent individuals are those from the last event record of the previous individual. This is because there is no call to DES with the first event record of the individual record, or with any other event record with the same value of TIME. NM-TRAN provides a warning message. (WARNING 48) DES-DEFINED ITEMS ARE COMPUTED ONLY WHEN EVENT TIME INCREASES. E.G., DISPLAYED VALUES ASSOCIATED WITH THE FIRST EVENT RECORD OF AN INDIVIDUAL RECORD ARE COMPUTED WITH (THE LAST ADVANCE TO) AN EVENT TIME OF THE PRIOR INDIVIDUAL RECORD.
The values displayed for event records other than the first are evaluated at the event time (as are all other displayed items such as PK-defined values and data record items).
Note that multiple calls to DES are associated with each event record. Some (including the final call during integration) may have a value of T that is larger than the end time of the integration interval. When NONMEM is performing simulation or a copying pass (COMACT>0), DES is called immediately after the advance to an event time or non-event time, with a value of T equal to this time, so that displayed values are the final value of T. Global variable ISFINL is set by PREDPP to 1 on this final call to DES. ISFINL can be tested on a WRITE statement if such statements are used in DES.
(See des, advan6, advan8, advan9).
REFERENCES: Guide IV, section V.C.7; Guide VI, section VI.C
12 $DESIGN (NM75)
MEANING: Instructions for Clinical Trial Design Evaluation and Optimization
CONTEXT: NM-TRAN Control Record
DISCUSSION:
The optimal design process can help you in designing or evaluating a clinical trial. It may be desired to evaluate specified time points, or find the optimal time points, dose levels, and number of time points appropriate for a particular sub-design, etc. The design algorithms have been modeled after POPED by Hooker et al., and PFIM by Mentre et al. (see references [22-27]) in Introduction to NONMEM 7.
USAGE:
$DESIGN Record Options
[APPROX=[FO|FOI|FOCE|LAPLACE|LAPLACEI]]
[OFVTYPE=[0|1|2|3|4|5|6|7|8]]
[OFVDIMSCALED=[0|1]]
[GROUPSIZE=n]
[FIMTYPE=[0|1|2|3]]
[FIMDIAG=[0|1|2|3]]
[VARCROSS=[0|1]]
[EOPTD=1]
[SEED=n]
[CLOCKSEED=[0|1]]
[MODE=[0|1|2|3]]
[DATASIM=[0|1]]
Additional Control Options for $DESIGN
[SIGL=n]
[SIGLO=n]
[ABORT|NOABORT|NOHABORT]
[MAXEVALS=n]
[PRINT=n]
[NUMERICAL|NONUMERICAL]
[LIKELIHOOD|-2LOGLIKELIHOOD|-2LL]
[SLOW|NOSLOW|FAST]
[POSTHOC|NOPOSTHOC]
[NOPRIOR=[0|1]]
[FILE=filename]
[FORMAT|DELIM=s3]
[FNLETA=n]
Options for Setting up Types of Optimal Design
[NELDER]
[FEDOROV]
[RS]
[STGR]
[DISCRETE]
[DISCRETE_RS]
[DISCRETE_SG]
[DESEL=label]
[DESELSTRAT=label]
[DESELMIN=label]
[DESELMAX=label]
[NMIN=label]
[NMAX=label]
[STRAT=label]
[STRATF=label]SAMPLE:
$DESIGN APPROX=FOCEI MODE=1 NELDER FIMDIAG=0
DATASIM=1 GROUPSIZE=32 OFVTYPE=0will produce the most empirical, clinical trial simulation (CTS) style covariances, complete with simulated etas and eps, and standard FIM is assessed. If FIMDIAG>0, then a y-expectation covariance will be evaluated, but mode will be evaluated with the simulated data.
DISCUSSION:
The record name can be shortened to $DESI. Another name for the record is $OPTDESIGN, which can be shortened to $OPT.
The following is a brief summary of the options. See Introduction to NONMEM 7 “Clinical Trial Design Evaluation and Optimization” for more detail and more examples. The options are described in the following sections:
$DESIGNRecord Options (2) Additional Control Options for$DESIGN(3) Options for Setting up Types of Optimal Design$DESIGNRecord Options
APPROX=FO (default)The nlme approximation method is specified here. First order (no interaction) is the default, and the appropriate type of covariance matrix is evaluated or used in optimization of the design. Other options are:
FOI First order interaction with interaction”
FOCE first order conditional estimation
FOCEIfirst order conditional estimation with interaction
LAPLACELaplace conditional estimation
LAPLACEILaplace conditional estimation with interaction
OFVTYPE=1 (default)The objective function types are comparable to those of PopED:
0,1,3,4,5: design type: d-optimality, -log(det(FIM)), where FIM=Fisher Information Matrix (inverse of variance-covariance). 2: design type: a-optimality, -1/tr(1/FIM) 6: design type: ds-optimality, -log(det(FIM))+log(det(FIMunintersting)) To identify parameters as uninteresting, place UNINT at the parameter in the same manner you would place FIX. 7: design type: r-optimality (relative standard error),-1/tr(sqrt(1/FIM)/Paramer)) 8: optimal design type: Individual Bayesian FIM, -log(det(Bayes FIM)), as described in the PFIM 4.0 manual [26].
9: Same as option 2, and using the UNINT filter. 10: Same as option 7, and using the UNINT filter.
OFVDIMSCALED=0 (default) (nm760)If OFVDIMSCALED=1, then the objective function is scaled to be per parameter, the dimension of the FIM, as follows:
0,1,3,4,5: design type: D-optimality, -log(det(FIM))/D, where D is the dimension of the FIM.| 2: design type: a-optimality, -1/tr(1/FIM) 6: design type: DS-optimality, (-log(det(FIM))+log(det(FIMuninteresting)))/(D-U)| where U=number of uninteresting parameters. 7: design type: R-optimality (relative standard error), -1/(tr(sqrt(1/FIM)/Parameter))/D)| 8: -log(det(Bayes FIM))/D 9: design type: A-optimality, -1/(tr(1/FIM)/(D-U)) 10: -1/(tr(sqrt(1/FIM)/Parameter))/(D-U))
GROUPSIZE=1 (default)The GROUPSIZE is comparable to that of POPED, in which the FIM is multiplied by this number to provide the subject number size of the dataset template. For a template of one subject, GROUPSIZE would then offer the variance-covariance expected from GROUPSIZE number of subjects.
FIMTYPE or FIMDIAG=0FIMTYPE or FIMDIAG may be set to the following, and corresponds to fimcalc.type in POPED:
0 (default): Full information matrix Uses finite difference assessment for Theta, Omega, and Sigma variances and covariances.
1 Create a block diagonal information matrix of the estimates
2 Create a block information matrix
3 Create a full information matrix
VARCROSS=0 (default)Standard NONMEM residual variance modeling.
VARCROSS=1Residual Standard Deviation Modeling VARCROSS=1 means to treat the residual variance model in the manner of PFIM 4.0, as described in the manual.
FIMTYPE=1 VARCROSS=1 is equivalent to fim.calc.type=4 inPOPED, and diagonal option in PFIM.
EOPTD=1For each iteration, this creates a random sample of thetas, omegas, or sigmas, using the prior information. $PRIOR NWPRI prior information is required, and PLEV=0.999 must be specified. Best used with STGR. See example optdesign16.
SEED=223345Set the starting seed for any random samples to be created, whether for EOPTD=1, or for FOCE type FIM in creating random etas (see below).
CLOCKSEED=0 (default)As of nm75, the actual starting seed will be 10000*(seconds after midnight)+SEED (SEED may be set to 0 for this purpose), if CLOCKSEED=1. This allows a control stream to produce different stochastic results for automated replications, without the need to modify the seed value in the control stream file in each replication.
MODE=0 (default), 1, 2, or 3Used for specifying data and prediction value type when specifying APPROX=FOCEI. In NONMEM report: 0 EVALUATE AT F(ETAsim) DURING CONDITIONAL DESIGN ASSESSMENT 1 EVALUATE AT THE MODE F(ETAhat) DURING CONDITIONAL DESIGN ASSESSMENT 2 EVALUATE AT F(ETAsim)-GETAsim DURING CONDITIONAL DESIGN ASSESSMENT 3 EVALUATE AT F(0) DURING CONDITIONAL DESIGN ASSESSMENT In other words, MODE=0 means FOCEI with data at F(ETAsim), and predicted function evalauted at f(ETAsim), is to be used. This method works well. MODE=1 means FOCEI with data at F(ETAsim), and predicted function evaluated at the mode, f(ETAhat), is to be used. The results are not satisfactory. MODE=2 means linearized FOCEI, with data at F(ETAsim)-GETAsim, and predicted function at F(ETAsim). Works well.
DATASIM=0 (default)Normally, y-expectation evaluation of the FIM is performed. To actually simulate data, set DATASIM=1, and along with APPROX=FOCEI, this will produce simulated etas as well.
- Additional Control Options for
$DESIGN
The following options may be set within the $DESIGN record, and they operate exactly as their equivalents in the $EST record. Thus, the following are equivalent:
$DESIGN FIMDIAG=1 OFVTYPE=6 APPROX=FO
MAXEVAL=9999 NOHABORT PRINT=20 SIGL=10 POSTHOC
$DESIGN FIMDIAG=1 OFVTYPE=6 APPROX=FO
$EST MAXEVAL=9999 NOHABORT PRINT=20 SIGL=10 POSTHOCThe options are as follows.
SIGL
SIGLO
SIGL
SIGLO
ABORT/NOABORT/NOHABORT
MAXEVAL
MAXEVAL=0 indicates design evaluation (the default)MAXEVAL>0 indicates design optimization PRINT control iteration printing during optimal design NUMERICAL/NONUMERICAL -2LL/LIKELIHOOD/LLIKELIHOOD SLOW/NOSLOW/FAST POSTHOC NOPRIOR FORMAT FILE FNLETA
- Options for Setting up Types of Optimal Design
The additional options for $DESIGN listed below are for optimizing parts of the design components. For example, the DESEL, DESELSTRAT, DESELMIN, DESELMAX can be specified for all the various design elements that you want optimized. It might be TIME for time samples, AMT for dose, or some type of covariate specific for the problem. Certainly, any combination of covariates can be requested to be optimized.
NELDERUse Nelder method to search for optimal continuous parameters
FEDOROVUse to find ideal set of discrete time points from a larger set of possible time points.
RS Random Search method to find optimal continuous parameters
STGR Stochastic Gradient method to find optimal continuous parameters
DISCRETEFind optimal number of time points for each sub-design (subject template), and use NELDER method to find optimal continuous parameters.
DISCRETE_RSFind optimal number of time points for each sub-design (subject template), and use RS method to find optimal continuous parameters.
DISCRETE_SGFind optimal number of time points for each sub-design (subject template), and use STGR method to find optimal continuous parameters.
Specific parameters must be specified to be optimized.
This is done using the following options:
DESEL=labelThe data item (column) that contains the design element (DESEL) values that are to be modified and optimized. For example, TIME column would indicate that you want times to be estimated.
DESELSTRAT=labelThe data item (column) indicating stratification. The DESELSTRAT data item should contain integer indices to indicate what values are to be shared, and estimated together. If a record contains a value of 0 in the DESELSTRAT column, then this record is not included in the estimation process, and its value (say its time value in DESEL=TIME column) will not be changed. If the record contains a value >0 in DESELSTRAT, let us suppose a 1, then all records with the value of 1 in DESELSTRAT will share the same time value (or whatever DESEL selected), extimated together. Those records with value 2 will be another set of records which will share a time value, etc. Thus, within a subject, there may be a PK record and a PD record which should share the same time value. Also, a group of subjects may share the same time values. Within a subject, times will be automatically sorted as they are changed, so that NONMEM’s time ordering policy is not violated.
DESELMIN=labelThe data item (column) containing the minimal value
DESELMAX=labelThe data item (column) containing the maximal value
You must impose boundaries on the values that are being optimized. That is done with these two data items. Only those records with a stratification value >0 in DESELSTRAT column will require a min and max value, and only those records that define that stratification value for the first time.
All four DESEL items must be specified: DESEL,DESELSTRAT,DESELMIN,DESELMAX. They may be repeated for as many design elements are to be optimized. For example for times and amounts: DESEL=TIME DESELMMIN=TMIN DESELMAX=TMAX DESELSTRAT=TSTRAT DESEL=AMT DESELMIN=AMTMIN DESELMAX=AMTMAX DESELSTRAT=AMTSTRAT
NMIN=labelThe name of the data item (column) containing minimal number of time points to the subject.
NMAX=labelThe name of the data item (column) containing maximal number of time points to the subject. If NMIN<0 or NMAX<0, then most previous non-negative value is used. The NMIN and NMAX column are only used for the DISCRETE* analyses, to bound the number of time points that may be permitted for a given subject. With DISCRETE*, the total N of time points among all subjects is determined by the total number of time points whose MDV=0 in the starting data set.
STRAT=labelThe data item (column) containing grouping or stratification number pertaining to that subject.
STRATF=labelThe data item (column) containing starting fraction representation for the stratification value in column STRAT. If STRAT and STRATF are specified, and there is at least one STRAT value >0, then the SRATF values are optimized, and represent the weight to the contribution of that subject to the Information matrix. For STRAT<=0, then their STRATF values are not optimized, and remain fixed at their initial values, but are still used as weights to the information matrix. It is up to the user to ensure that the sum of STRATF values among unique STRAT values sum to 1. If value of STRATF<0.0, then that subject is not included in the assessment.
Additional $COVARIANCE Control Options for $DESIGN
In addition, $DESIGN sets up the covariance step as $COV MATRIX=R UNCONDITIONAL without the user requiring this record entered in the control stream. If you wish to specify additional control for the covariance, you can add these in a $COV record, such as: $DESIGN FIMDIAG=1 OFVTYPE=6 APPROX=FO MAXEVAL=9999 NOHABORT PRINT=20 SIGL=10 POSTHOC $COV PRINT=E
RECORD ORDER:
Same as $ESTIMATION or $SIMULATION
REFERENCES: Guide Introduction_7
13 $ERROR
MEANING: Marks the beginning of abbreviated code for the ERROR routine
CONTEXT: NM-TRAN Control Record
USAGE:
$ERRORabbreviated code
DISCUSSION:
The $ERROR record is used to model intra-individual error in observed values. It is used with PREDPP. It can also be used to to convert predictions from PREDPP, i.e., scaled drug amounts, to other types of predictions (for example, to obtain the prediction of a drug effect as a function of concentration, in a pharmacodynamic study). General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
Y (Required. The modeled value for the dependent variable under the statistical model.)
ERROR-defined (i.e., PRED-defined) items.
Left-hand quantities from the $PK block, if they are not random variables and neither $PK nor $ERROR include the COMRES=-1 pseudoassignment statement.
Right-hand quantities in assignment statement and in conditions:
F (Required. The value of the scaled drug amount in the observation compartment.)
Data item labels specified on the $INPUT statement.
THETA(n)ETA(n) (Required if the data are single-subject, and can be coded ERR(n). Optional if the data are population.)
EPS(n) (Required if the data are population, and can be coded ERR(n).)
ERROR-defined items that appeared earlier as left-hand quantities. This includes Y.
Left-hand quantities from the $PK block, if neither $PK nor $ERROR include the COMRES=-1 pseudo-assignment statement.
NEWINDSame as the NEWIND argument passed by NONMEM to PREDPP. NEWIND=0: First record of the data set. THETA value may differ from value at last call with this record. NEWIND=1: First record of the data set, THETA value does not differ from value at last call with this record, and PRED is nonrecursive (see I_REC), or, First record of a subsequent individual record. NEWIND=2: Subsequent data record of an individual record.
NEWL2
NEWL2=1: First record of an L2 record.
NEWL2=2: Otherwise.
ICALLSame as the ICALL argument passed by NONMEM to PREDPP. ICALL=1: Initialization. ICALL=2: Normal call. ICALL=3: Finalization. ICALL=4: Simulation. ICALL=5: Expectation. ICALL=6: Data Average. Special rules apply to blocks of abbreviated code that are executed when ICALL is not 2. (See Initialization-Finalization block, Simulation block). (See Expectation block, Data_Average block).
Global Variables in Modules Certain variables in FORTRAN Modules can be used. (See Variables_in_modules) The following are of particular interest.
A(n) (Amount in compartment n.) (See State Vector A) Note: If there is no verbatim code and no explicit use of a subscripted variable A in the $ERROR block, then the symbol A can be used as a data item label or as a name of an ERROR-defined item.
Forbidden Variable Names: IDEF IREV EVTREC NVNT INDXS G HH DADT(n) E(n) P(n)
PSEUDO ASSIGNMENT STATEMENTS
COMRES=-1
CALLFL=-1: Call with every event record.
CALLFL=0: Call with every observation record.
CALLFL=1: Call once per individual record.Of the last three, CALLFL=-1 is the default, except when the abbreviated code consists of one line specifying a simple additive or proportional error model, and no verbatim code is present. CALLFL=2: Call once per problem. In effect, this is supplied by NM-TRAN for the simple error models, but it cannot be specified explicitly in the $ERROR record. (See callfl).
Pseudo-assignments statements may be enclosed in parentheses. If two of them are present in the same set of parentheses, separate them with a semicolon. A calling protocol phrase may be used within parentheses instead of a pseudo-assignment statement, and then either upper or lower case may be used . E.g., $ERROR (ONCE PER IR) ; same as CALLFL=1 $ERROR (ONLY OBSERVATIONS) ; same as CALLFL=0 $ERROR (EVERY EVENT) ; same as CALLFL=-1 (default)
RECORD ORDER:
Follows $SUBROUTINES and $INPUT Follows $MODEL (if a general model such as ADVAN6 is used) Follows $PK (if present)
REFERENCES: Guide IV, section V.C.6; Guide V, section 8; Guide VI, section IV
14 $ESTIMATION, $ESTM
MEANING: Instructions for the NONMEM Estimation Step
CONTEXT: NM-TRAN Control Record
USAGE:
$ESTIMATION
[ABORT|NOABORT|NOHABORT]
[ATOL=n]
[AUTO=[0|1|2|3]]
[BAYES_PHI_STORE=[0|1]]
[BIONLY=[0|1]]
[BOOTDATA=[0|1]]
[CALPHA=n]
[CENTERING|NOCENTERING]
[CINTERVAL=n]
[CITER=n | CNSAMP=n]
[CONSTRAIN=n]
[CTYPE=[0|1|2|3|4]]
[DERCONT=[0|1]]
[DF=n]
[DFS=n]
[EONLY=[0|1]]
[ETABARCHECK|NOETABARCHECK]
[ETADER=n]
[ETASAMPLES=0 | ETASAMPLES=1]
[ETASTYPE=0 | ETASTYPE=1]
[EVALSHRINK=n]
[FILE=filename]
[FNLETA=n]
[FORMAT|DELIM=s]
[FO|NOFO]
[FPARAFILE=[filename|ON|OFF]
[GRD=s]
[GRDQ=s]
[GRID=(nr,ns,r0,r1)]
[IACCEPT=x]
[IACCEPTL=x]
[IKAPPA=x]
[INTERACTION|NOINTERACTION]
[ISAMPEND=n]
[ISAMPLE=n]
[ISAMPLE_M1=n]
[ISAMPLE_M1A=n]
[ISAMPLE_M1B=n]
[ISAMPLE_M2=n]
[ISAMPLE_M3=n]
[ISCALE_MAX=x]
[ISCALE_MIN=x]
[KAPPA=x]
[KNUTHSUMOFF=n]
[LAPLACIAN|NOLAPLACIAN]
[LEVCENTER=[0|1]]
[LEVOBJTYPE=[0|1]]
[LEVWT=n]
[LIKELIHOOD|-2LOGLIKELIHOOD]
[LNTWOPI]
[MADAPT=n]
[MAPCOV=n]
[MAPINTER=n]
[MAPITER=n]
[MAPITERS=[0|1]]
[MASSRESET=n]
[MAXEVALS=n]
[MCETA=n]
[METHOD=kind]
[MSFO=filename]
[MUM=s]
[NBURN=n]
[NITER=n]
[NOCOV=[0|1]]
[NOLABEL=[0|1]]
[NONINFETA=[0|1]]
[NOPRIOR=[0|1]]
[NOSUB=[0|1]]
[NOTITLE=[0|1]]
[NUMDER=[0|1|2|3]]
[NUMERICAL|NONUMERICAL]
[NUTS_BASE=x]
[NUTS_DELTA=x]
[NUTS_EPARAM=n]
[NUTS_GAMMA=x]
[NUTS_INIT=x]
[NUTS_MASS=[B|F|D|BD|DB|BBD|BBB]]
[NUTS_MAXDEPTH=n]
[NUTS_OPARAM=n]
[NUTS_REG=x]
[NUTS_SPARAM=x]
[NUTS_STEPINTER=n]
[NUTS_STEPITER=n]
[NUTS_TERM=x]
[NUTS_TEST=n]
[NUTS_TRANSFORM=n]
[OACCEPT=n]
[OLKJDF=n]
[OLNTWOPI]
[OMEGABOUNDTEST|NOOMEGABOUNDTEST]
[OMITTED]
[OPTMAP=n]
[ORDER=xxxf]
[OSAMPLE_M1=n]
[OSAMPLE_M2=n]
[OVARF=x]
[PACCEPT=n]
[PARAFILE=[filename|ON|OFF]
[PARAFPRINT=n]
[PHITYPE=n]
[POSTHOC|NOPOSTHOC]
[PREDICTION]
[PRINT=n]
[PRIORC]
[PSAMPLE_M1=n]
[PSAMPLE_M2=n]
[PSAMPLE_M3=n]
[PSCALE_MAX=n]
[PSCALE_MIN=n]
[RANMETHOD=[n|S|m|P] ]
[REPEAT|NOREPEAT]
[REPEAT1|NOREPEAT1]
[REPEAT2|NOREPEAT2]
[SADDLE_HESS=n]
[SADDLE_RESET=n]
[SEED=n]
[CLOCKSEED=[0|1]]
[SELECT=n]
[SIGDIGITS|NSIGDIGITS=n]
[SIGL=n]
[SIGLO=n]
[SIGMABOUNDTEST|NOSIGMABOUNDTEST]
[SLKJDF=x]
[SLOW=1|SLOW=2]
[SLOW|NOSLOW|FAST]
[SORT|NOSORT]
[STDOBJ=x]
[STIELTJES]
[SVARF=x]
[TBLN=n]
[THETABOUNDTEST|NOTHETABOUNDTEST]
[THIN=n]
[TPU=n]
[TTDF=n]
[ZERO=list]SAMPLE:
$ESTIMATION MAXEVAL=450 PRINT=5DISCUSSION:
Optional. Requests that the NONMEM Estimation Step be implemented. May also be coded $ESTM or $ESTIMATE. The Estimation Step obtains parameter estimates. With NONMEM 7, multiple Estimation Steps can be implemented in a single problem. A sequence of two or more Estimation Steps will result in the sequential execution of each. Options specified in an $ESTIMATION record will carry over to the next $ESTIMATION record unless a new option is specified. If a particular option is not used by the method then the option will be ignored. The final parameter estimates from an Estimation Step will be passed on as the initial estimates for the next Estimation Step. (See $ESTIMATION_record_options).
See also “Reserved Variables that are of Interest During the Estimation Step”, at the end of this help item.
OPTIONS:
ABORT-
During the Estimation Step, NONMEM does not implement thetarecovery when
PREDsets the error return code to 1. (ThePREDerror return code n is set by the statement “EXITn [k]” in abbreviated code, or by the statementIERPRD=nin user-supplied code, or by PREDPP when it detects errors.) This is the default. NOABORT-
During the Estimation Step, NONMEM implements theta-recovery, i.e., attempt to avoid values of theta which result in
PREDerror return code 1. In addition, most non-positive Hessian matrices will be forced to be positive definite, allowing the program to continue, and abnormal termination of the estimation step will occur less often. NOHABORT- Perform positive definite correction at all levels of the estimation. This can hide a serious ill-posed problem, so use with care.
ATOL=n(NM72)-
Absolute tolerance. Used only with
ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADAN16, andADVAN17,ADVAN18, for which TOL is a relative tolerance. SetsANRD=ATOL. The default is 12 (that is, accuracy is 10**(-12)). Usually the problem runs quickly when using this setting. On occasion, however, you may want to reduceATOL(usually set it equal to that of TOL), and improve speeds of up to 3 to 4 fold. By default, the value set on$SUBROUTINESrecord (or$TOLor TOL subroutine) is used. IfATOLis coded on$ESTIMATION, it overrides the default for that step. IfATOLis coded on$COVARIANCE, it overrides$ESTIMATIONand/or the default for that step. With NONMEM 74, this feature is deprecated. A user-supplied TOL subroutine should testNM_STEPand setANRDaccordingly. AUTO=0(NM73)- NONMEM does not provide best settings of certain options. This is the default.
AUTO=1(NM73)-
Several options will be set by NONMEM that will allow best settings to be determined. User may still over-ride those options set by auto, by specifying them on the same
$ESTrecord. TheAUTOoption is ignored by the FO/FOCE/Laplace methods. AUTO=2(NM74)-
AUTO=2may be user withNUTSestimation to setup the alternative sampling strategy “Matt trick”. AUTO=2(NM74)-
AUTO=3may be user withNUTSestimation to setup the alternative sampling strategy of eta sampling. SeeINTRODUCTIONTO NONMEM 7 for more information. BAYES_PHI_STORE=[0|1](NM75)-
If
BAYES_PHI_STORE=1then phi and eta values from eachBAYESiteration will be stored in root.iph. BIONLY=[0|1](NM75)-
BIONLYstands for Bayesian individual parameters only, and when set to 1, will create new samples of individual parameters only, but will keep the population parameters fixed. May be used withBAYES_PHI_STORE=1or write statements capturing the individual parameters samples. SeeINTRODUCTIONTO NONMEM 7 for more information. BOOTDATA=[0|1](NM75)-
By default (
BOOTDATA=0), when data are selected based on$SIML BOOSTRAP, the randomly selected subjects are analyzed during the subsequent estimation method. IfBOOTDATA=1, then the subjects not selected are analyzed. SeeINTRODUCTIONTO NONMEM 7 for more information. CALPHA=n- n is a value between 0.01 and 0.05. Alpha error rate to use for linear regression test to assess statistical significance. Default is 0.05.
CENTERING-
Requests that the average conditional estimates of each eta be constrained to be close to 0. May only be used with
METHOD=1. Not permitted withINTERACTION. NOCENTERING- Requests that the average conditional estimates of each eta not be constrained. This is the default.
CINTERVAL=n-
Every n iterations is submitted to the convergence test system. If
CINTERVAL=0, then a bestCINTERVALwill be found, then used. CITER=n-
n is the number of latest
PRINTorCINTERVALiterations on which to perform a linear regression test (where independent variable is iteration number, dependent variable is parameter value). IfCITER=10, then 10 of the most recent PRINTed orCINTERVALiterations are used for the linear regression test. Default is 10. May also be codedCNSAMP. IfCINTERVALis not specified, then thePRINToption is used. CONSTRAIN=n(NM72)-
Requests simulated annealing for parameters to slow the rate of reduction of the elements of
OMEGAduring the burn-in phase of theSAEMmethod, allowing for a more global search of parameters that minimize the objective function. Values for n are: 0 or 4 No simulated annealing. 1 or 5 Requests simulated annealing forOMEGA. 2 or 6 Requests simulated annealing forSIGMA. 3 or 7 Requests simulated annealing for bothOMEGAandSIGMA. Default is 1. WhenCONSTRAIN>=4, simulated annealing is also performed on diagonal elements ofOMEGAthat are fixed to 0 to facilitate any associated thetas. Simulated annealing is performed by subroutineCONSTRAINT. The$ANNEALrecord facilitates EM search methods for this additional annealing technique. The subroutineCONSTRAINTmay also be used to provide any kind of constraint pattern on any parameters. (See$ANNEAL). The user may modify the subroutineCONSTRAINTthat performs the simulated annealing algorithm. (See additional_output_files, raw_output_file). CTYPE=[0|1|2|3|4]-
CTYPEis used to define the termination test to be applied to the burn-in phases forSAEMandBAYESmethods and to the estimation phases for the ITS, IMP, andIMPMAPmethods. (CTYPE=4Applies to classical methods FO/FOCE/Laplacean.)CTYPE=0indicates no termination test, the default.CTYPE=1indicates that the test should be applied to the objective function value,THETA’s andSIGMA’s but not to theOMEGA’s.CTYPE=2indicates that the test should be applied to the objective function value,THETA’s,SIGMA’s and diagonal elements ofOMEGA.CTYPE=3indicates that the test should be applied to the objective function value,THETA’s,SIGMA’s and allOMEGAelements.CTYPE=4indicates that NONMEM should test if the objective function has not changed by more thenNSIGdigits beyond the decimal point over 10 iterations, even though a parameter may oscillate at some digit. If this condition is satisfied, the estimation will terminate successfully. Applies to FO/FOCE/Laplacean methods. DERCONT=[0|1](NM73)-
The derivative continuity test (
DERCONT) by default is off (0). WhenDERCONT=1, the partial derivative of the objective function with respect to thetas will perform an additional test to determine if a backward difference assessment is more accurate than a forward difference assessment. The forward difference assessment can differ greatly from the backward difference assessment in cases of extreme discontinuity when varying certain thetas by even just a small amount in the model results in a large change in objective function, (such as a viral model in which a very small change in the potency of an anti-viral agent results in widely varying time of return of viral load). This results in standard errors being poorly assessed for thetas that do not have inter-subject variances associated with them. SettingDERCONT=1slows the analysis, but can provide more accurate assessments of SE in such models. TheDERCONTworks only for the Monte Carlo EM algorithms such as IMP,DIRECT,IMPMAP, andSAEM. DF=nThe proposal density is to be a t distribution with n degrees of-
freedom. Default is 0, a normal density. Used with the IMP and
IMPMAPmethods. DFS=n(NM73)-
Degrees of freedom for the Sigma matrix for simulation purposes by
CHAIN. DFS=-1 This is the default. The cholesky elements are uniformly varied over the interval (1-accept)initial value and (1+accept)initial value.DFS=nTheSIGMAmatrix is randomly created with an inverse Wishart distribution centered about the initialSIGMAvalues, with degrees of freedom DFS for dispersion.DFS=0As above, but the size of theSIGMAmatrix is used as degrees of freedom. DFS=>1000000SIGMAis fixed at its initial value. EONLY=[0|1]- A value of 1 indicates the IMP objective function should be evaluated by performing only the expectation step without advancing the population parameters. Default is 0.
ETABARCHECK- There is an etabar statistic (See etabar) from a previous problem, and the P-value associated for the etabar statistic with the problem at hand relates to a hypothesis test that the true etabar is the same as that with the previous problem.
NOETABARCHECK- The P-value associated for the etabar statistic (See etabar) relates to a hypothesis test that the true etabar is 0. This is the default.
ETADER=n(NM73)-
For evaluating individual variances by numerical derivative methods. In evaluating the MAP objective function, the term log(Det(V)) must be evaluated to obtained the marginal or integrated posterior density, where V is the eta Variance matrix based on the subject’s posterior density. With
ETADER>0,SLOWoption may be needed.ETADER=0Expected value V, using analytical first derivativesETADER=1Expected value V, using forward finite difference numerical first derivatives. Needed if not all code evaluating F and Y derivatives with respect to eta are available for processing by NM-TRAN or in user supplied code.ETADER=2Expected value V, using central finite difference numerical first derivatives. Needed if not all code evaluating F and Y derivatives with respect to eta are available for processing by NM-TRAN or in user supplied code.ETADER=32nd derivative method of evaluating V, using numerical second derivatives of -log(L) with respect to etas. This is equivalent to using the “LaplaceNUMERICAL” method, even thoughFOCEmay be selected. ETASAMPLES=[0|1](NM74)-
Used with
$EST METHOD=SAEMor$EST METHOD=BAYES.ETASAMPLES=0is the default.ETASAMPLES=1causes individualISAMPLErandom eta samples per subject, to be written to root.ets, where root is the root name of the control stream file. See “Stochastic Approximation Expectation Maximization (SAEM) Method” in GuideINTRODUCTIONTO NONMEM 7. ETASTYPE=0(NM73)- Eta shrinkage is averaged for all subjects. This is the default.
ETASTYPE=1- Eta shrinkage is averaged only among subjects that provided a non-zero derivative of their data likelihood with respect to that eta. (See etasxi).
EVALSHRINK=0(NM760)-
By default, when
MAXEVAL=0, and population parameters are not inputted from an MSF file (using the$MSFIrecord), Etabar and shrinkage information is not calculated and displayed in the NONMEM report file. If you wish to have this information displayed whenMAXEVAL=0, then setEVALSHRINK=1on the$ESTrecord. FAST(NM74)-
The
FASToption is available forFOCE/ITS methods. TheFASTmethod allows use of analytical theta derivatives to facilitateFOCEanalysis. All thetas should be MU-referenced in the manner described in GuideINTRODUCTIONTO NONMEM 7, “MU Referencing”. For thetas that should not have inter-subject variability, or should not be MU referenced, MU reference it anyway by adding addional etas and assigning them to these thetas through MU referencing, but set their associated omega values to 0.0FIXED. FILE=filename-
Name for the raw output file. Parameter estimates and objective function value will be printed to this file every printed iteration as indicated by the
PRINToption. Default: root.ext, where root is the name of the control file (not including any extension; “nmbayes” if the name is not specified on the nmfe command line). Note that the names of additional output files are not affected by this option. Additional output files have extensions .ext, .phi, .phm, .shk, .shm .grd, .xml, .cov, .cor, .coi, .cnv, .smt, .rmt, .imp, .npd, .npe, .npi, .fgh, .clt, .vpd, .vpt, .ets, .vpt, .bfm, .iph They always have the name of the control file or “nmbayes” for root. (See additional_output_files, raw_output_file). FNLETA=n(NM72)-
For a thorough discussion: See
INTRODUCTIONTO NONMEM 7, General New Options for$ESTIMATIONRecordFNLETA=0requests that theFNLMODandFNLETAroutines not be called after the Estimation and Covariance steps are completed. May improve run time. Post-hoc etas forMETHOD=0will not be computed. All table outputs (diagnostics and user selected items) will use EBE’s from final estimation method (conditional modes for FO/FOCE/Laplace/ITS, conditional means for IMP/SAEM,MCMCposterior means forBAYES).FNLETA=1is the default.FNLMODandFNLETAroutines are called as usual. Diagnostics depending on EBE’s such asCWRES,CIWRES,CIPRED, etc., will use EBE’s based on the final estimation method (conditional mode for FO/FOCE/Laplace/ITS, conditional mean for IMP/SAEM,MCMCposterior means forBAYES), while user selected items will use EBE’s from theFNLETAstep (eta modes).FNLETA=2Requests that the estimation step not be done. All table outputs will use a common set of EBE’s from an imported source. This has value if you loaded the individual etas from an MSF file, or from a$PHIS/$ETASrecord, and you want to calculate$TABLEitems based on those etas, rather than from a new estimation.FNLETA=3(as of nm74) LikeFNLETA=1, will callFNLETA, and all table outputs (diagnostics and user selected items) will use EBE’s from theFNLETAstep (eta modes). FORMAT=s-
Format for the raw output file and all additional output files. s defines the delimiter [,|s(pace)|t(ab)] followed by a Fortran format specification. The default is s1PE12.5. For more details, see the format help item: (See format). May also be coded
DELIM. DELIM=s-
Same as
FORMAToption. SeeINTRODUCTIONTO NONMEM 7,$EST: Format of Raw Output File - FO Requests that the First-Order Model be used with
METHOD=1and -
CENTERING. Cannot be used withLAPLACIAN. NOFORequests that the First-Order Model not be used withMETHOD=1and-
CENTERING. This is the default. FPARAFILE=filename(NM74)-
Final etas (empirical Bayes estimates; EBE’s) are evaluated after the last Estimation Step (when
FNLETA=1). This computation is parallelized if parallelization is on for the final Estimation Step.FPARAFILE=filenamespecifies a different parafile than was used for the Estimation Step.FPARAFILE=ONturns on parallelization for the EBE’s.FPARAFILE=OFFturns off parallelization for the EBE’s. TheFPARAFILEoption may be specified on any$ESTIMATIONrecord, but applies only after the last Estimation Step. GRD=s-
s is a string of [G|N|D|S]’s with each symbol representing a
THETAorSIGMAparameter in numerical order. The first m letters of GRD refer to the mTHETA’s. Then the m+1th letter refers toSIGMA(1,1), m+2 refers toSIGMA(2,2), etc (going along the diagonal ofSIGMA). Omitted symbols are assumed to be D. G indicates that theTHETAshould be Gibbs sampled. N indicates theTHETAshould be sampled using the Metropolis-Hasting algorithm. S indicates that theTHETAis being used to model aSIGMAparameter. S is used with Monte Carlo EM methods. D (default) indicates the program will decide. G and N are used only with theBAYESmethod. Default isDDDD… GRD=t1v1(n1):t2v2(n2):t3v3(n3)…-
An alternative syntax may be used. T is parameter type (T for theta, S for sigma-like theta). V is a letter (S,D or N), and n is a number list. For example, to specify thetas 3, and 5 through 8 to be Gibbs samples, theta 4 is sigma-like, and sigmas 1-3 are to be Metropolis-Hastings processed,
GRD=TG(3,5-8):TS(4):SN(1-3) Thetas and sigmas not specified are given a default D designation. GRDQ=0(NM74)-
Optional. The gradient quick option, called
GRDQ, allows thetas that must be gradient assessed (such as those that are not mureferenced) andSIGMASto be more quickly evaluated by not evaluating the gradients for every one of theISAMPLErandom samples, but chooses a subset of the most important samples. GRID=(nr,ns,r0,r1)-
Optional. May be used with
STIELTJES. For nr, ns, r0, and r1, see the detailed description to optionSTIELTJESbelow. Briefly, a grid is obtained by first taking the interval [r0,r1] of the length axis and dividing this interval into nr equal subintervals. ns may be thought of as the number of points in a single quadrant of a 2-dimensional ellipse in n-space. Constraints are nr<=100, ns<=9999, 0<r0<r1<1. If r1>.9999, there is no tail region. nr and ns should be integers. The default values are:GRID=(3,1,.6,.9). IACCEPT=x-
Has different meanings, depending on the method. With
SAEMandBAYES, the scaling ofOMEGAis adjusted so that samples are accepted x fraction of the time. SeeISAMPLE_M2. Default is 0.4. With Importance sampling (IMPINTERACTION), expand proposal (sampling) density variance relative to conditional density so that on average conditional density/proposal density=IACCEPT(default 0.4). For very sparse data or highly non-linear posterior densities (such as with categorical data), you may want to decrease to 0.1 to 0.3. IACCEPT=0-
For importance sampling only, you may set
IACCEPT=0.0, and NONMEM will determine the most appropriateIACCEPTlevel for each subject, and if necessary, will use a t- distribution (by altering the DF for each subject) as well. IfIACCEPT=0, the individualIACCEPTvalues and DF values will be listed in root.imp. IACCEPTL=x(NM74)-
A scale to a second multi-variate normal density, to cover long tails in the posterior density (hence L for long tails), in combination with the normal
IACCEPTvalue to cover the posterior density near the mode. IKAPPA=x](NM74)-
Used in computing weight for individual parameters in
ISAMPLE_M1Bmode.IKAPPAis 1. INTERACTION-
The dependence on etas of the model for intra-individual random error is preserved in the computation of the objective function. Cannot be used with
CENTERING. With NONMEM 7.3, This is the default with EM/Bayes methods and is supplied ifNOINTERACTIONis not specified by the user. With NONMEM 7.4,INTERACTIONis not supplied ifLIKELIHOODis present. NOINTERACTION- Always set etas to 0 during the computation of the model for intraindividual random error. This is the default with non-EM/Bayes methods.
ISAMPEND=n(NM73)-
For
SAEM, ifISAMPENDis specified as an upper integer value (usually 10), then NONMEM will perform aISAMPLEpreprocess to determine the bestISAMPLEvalue. See alsoSTDOBJ. ISAMPLE=n-
When used with the IMP or
IMPMAPmethods n is the number of random samples per subject used for the expectation step. Default is 300. When used with theSAEMorBAYESmethod n is the number of chains used by the Metropolis-Hastings algorithm for individual parameter estimation. The default is 2 forSAEMand 1 forBAYES. A kernel is the Metropolis-Hastings sampling and testing mode used. The ISAMPLE_Mx options define how many times to generate and test a sample for goodness-of-fit using a given kernel.ISAMPLEdoes not refer to a kernel, but defines the number of chains that are maintained, each chain having their own sample generation and testing sequence using the various kernels. Each chain retains a final sample for each subject, at the end of each iteration. ISAMPLE_M1=n-
n is the number of mode 1 iterations for the Metropolis-Hasting algorithm for estimating individual parameters using the population means and variances as proposal density. Used with the
SAEMandBAYESmethods. Default is 2. ISAMPLE_M1A=n(NM72)-
n is the number of mode 1A iterations for the Metropolis-Hasting algorithm, testing model parameters from other subjects as possible values. Used with the
SAEMandBAYESmethods. Default is 0. ISAMPLE_M1B=n(NM74)- n is the number of mode 1B iterations for the Metropolis-Hasting algorithm Default is 2.
ISAMPLE_M2=n-
n is the number of mode 2 iterations for the Metropolis-Hasting algorithm for estimating individual parameters using the current parameter vector position as mean and a scaled variance of
OMEGAas variance. Used with theSAEMand BAY ISAMPLE_M3=n-
n is the number of mode 3 iterations for the Metropolis-Hasting algorithm for estimating individual parameters in which samples are generated for each parameter separately. Used with the
SAEMandBAYESmethods. Default is 2. ISCALE_MIN=x ISCALE_MAX=x(NM72)-
In importance sampling, the scale factor used to vary the size of the variance of the proposal density in order to meet the
IACCEPTcondition is by default bounded byISCALE_MINof 0.1, andISCALE_MAX=10.0. Defaults are (1.0E-06,1.0E+06) forMCMCsampling. These options allow the scale factor boundary to be modified. KAPPA=x(NM74)-
Used with
NUTSmethod. Default is 1. KNUTHSUMOFF=n](NM74)-
The Knuth summing method is used to allow the most accurate summation of individual objective function values, even with large variations in values of the individual objective function. To turn this off, and allow a standard summation (not recommended except for comparison purposes from earlier versions), set
KNUTHSUMOFF=1. WithKNUTHSUMalgorithm on by default, theSORToption is not necessary. Default is 0. May also be set with$COVARIANCErecord. LAPLACIAN-
Use the Laplacian method, in which second derivatives with respect to eta are used. Laplacian may not be used with
METHOD=0. It may be used with the EM/Monte Carlo methods, in which case the Laplacian option will be properly utilized, such as during MAP estimation used during IMP,IMPMAP, and ITS, or ignored, such as duringSAEMorBAYES. Cannot be used with$ABBREVIATED DERIV2=NOunlessNUMERICALoption is also specified. NOLAPLACIAN- Do not use the Laplacian method. This is the default.
LEVCENTER=[0|1](NM75)-
There is no default. Required with
$LEVELand$ESTIMATION. IfLEVCENTER=1, this ensures the etas of superIDrandom levels sum to 0. In earlier versions of NONMEM, this was the default (and only) action. To obtain similar results as earlier versions of NONMEM, setLEVCENTER=1. IfLEVCENTER=0, level etas are not forced to sum to 0. SeeINTRODUCTIONTO NONMEM 7 for more information. LEVOBJTYPE=[0|1](NM751)-
If
LEVOBJTYPE=0, then for IMP/ITS/FOCE/Laplace, the reported ojective function (and what is used for estimation) is the average of two cycles of optimization. The first optimization floats all etas, and the second optimization fixes the super-ID etas to the appropriate average of etas per super-id group from the first optimization, and then floats theID(and below) level etas. IfLEVOBJTYPE=1, then the OBJ reported (and used for estimation) is only that of the second optimization cycle. TheLEVOBJTYPE=0provides the most consistent results betweenFOCE/Laplace and the EM and Bayes methods, particularly with super-ID levels higher than 1 (so, siteIDand countryID, for example). TheLEVOBJTYPE=1provides an OBJ more consistent with theory. By default, NONMEM sets the estimation process toSLOWwhen a$LEVELoption is used. As of nm751, you may setNOSLOWorFAST. While there is an increase in speed, but there may not be as good optimization progress as with theSLOWoption. It may be best to useSLOWfor the$ESTstep, and useNOSLOWorFASTfor the$COVstep. SeeINTRODUCTIONTO NONMEM 7 for more information. LEVWT=n(NM74)-
This option applies when
$LEVELrecord is present. By default,LEVWT=0, and weights each level value equally, regardless of number of subjects per level value. To weight according to number of subjects for that value, setLEVWT=1. LIKELIHOOD-
This is designed mainly, but not exclusively, for use with non-continuous observed responses (“odd-type data”). Indicates that Y (with NM-TRAN abbreviated code) or F (with a user-supplied
PREDorERRORcode) will be set to a (conditional) likelihood. Upon simulation it will be ignored, and theDVdata item will be set directly to the simulated value in abbreviated or user code. Also etas, if any, are understood to be population etas. Epsilon variables and the$SIGMArecord may not be used. TheL2data item may not be used. TheCONTRandCCONTRoptions of the$SUBROUTINESrecord may not be used. NONMEM cannot obtain the initial estimate for omega. If the data are population, andMAXEVALS=0is not coded, thenNOINTERACTIONis required. Compare withPREDICTIONoption. -2LOGLIKELIHOOD-
Indicates that Y (with NM-TRAN abbreviated code) or F (with a user-supplied
PREDorERRORcode) is a -2 log (conditional) likelihood. All remarks forLIKELIHOODapply. May also be coded -2LLIKELIHOOD. Compare withPREDICTIONoption. MADAPT=n(NM74)-
Used with
NUTSmethod. Default is -1. MAPCOV=1(NM74)- Unused. The default is 1.
MAPINTER=n(NM72)-
Every nth iteration, the MAP estimation should be used to provide parameters to the sampling density. Thus, if
MAPITER=20andMAPINTER=5, then for the first 20 iterations, MAP estimation is used, and thereafter, every 5th iteration the MAP estimation is used. IfMAPINTER=-1, then mapinter will be turned on only if the objective function increases consistently over several iterations. Setting any of the above parameters to -100 will force NONMEM to select the default value for that parameter. MAPITER=n(NM72)-
The first n iterations are to use MAP estimation to assess parameters for the sampling density. After these n iterations, the conditional means and variances of the pervious iteration are used for the sampling density parameters of the present iteration. If
MAPITER=0, then the first iteration will rely on conditional means and variances that are in memory. These may have come from an MSF file, or from a previous estimation step. MAPITERS=[0|1](NM75)-
By default, no MAP estimation is performed with
SAEMorBAYES. To get good individual parameter values near the mode of the posterior density for the first iteration ofSAEM, you can setMAPITERS=1. Alternatively, you can insert the record:$EST METHOD=ITSNITER=0Followed by$EST METHOD=SAEMor$EST METHOD=BAYES MASSRESET=n(NM74)-
Mass matrix information accumulation for
NUTSmethod. Default is -1. MAXEVALS=n-
Maximum allowable number of evaluations of the objective function during the Estimation Step. Default: a generous number. (Each evaluation of the objective function requires one pass through the data set. This is also referred to as a “function evaluation.”)
MAXEVALS=-1 may be specified when a$MSFIrecord is present. It requests that NONMEM re-use the value from the previous run, and is the default with$MSFI.MAXEVALS=0requests that the Estimation Step be omitted. This is useful, for example, withPOSTHOC(see above).
MCETA=n (NM73)
MCETA=0Eta=0 is initial setting for MAP estimation (eta optimization). This is the default.
MCETA=1
ETA=values of previous iteration is initial setting for MAPestimation, or ETA=0, whichever gives lower objective function.
MCETA>1MCETA-1 Random samples of ETA, using normal random distribution with variance OMEGA, are tested. Plus previous ETA is tested, and ETA=0 is tested. Whichever gives the lowest objective function is used as initial setting for the MAP optimization.
METHOD=kind-
Values for kind are:
0 or
ZEROAlways set etas to 0 during the computation of the objective function. Also called the “first order (FO) method.” This is the default. 1 orCONDITIONALUse conditional estimates for the etas during the computation of the objective function.METHOD=1(without theLAPLACIANoption) is also called the “first order conditional estimation (FOCE) method.” The conditional estimates of the etas are referred to as Conditional Parametric Etas (CPE).METH=COND NOLAPLACIAN is referred to as the FOCE method. METH=COND LAPLACE is referred to as the Laplace method. METH=COND NOLAPLACE CENTERING is referred to as the Centering FOCE method. METH=COND LAPLACE CENTERING is referred to as the Centering Laplace method.HYBRIDUse conditional estimates for the etas during the computation of the objective function, with the exception of those etas listed in theZEROoption. Cannot be used withLAPLACIANorCENTERING. The following methods are new to NONMEM 7. When any of these methods are used, the data are inferred to be population, andMETHOD=1is supplied if it is not already present. The first four methods are referred to as EM (Expectation-Maximization) Methods.ITSUse the iterative two-stage method. This method evaluates the conditional mode and first order approximation of the conditional variance of parameters of individuals by maximizing the posterior density. This integration step is the same as used in the FO.IMPUse the Monte-Carlo Importance Sampling Expectation Maximization method. This method evaluates the conditional mean and variance of parameters of individuals by Monte Carlo sampling. It uses the posterior density, which incorporates the likelihood of parameters relative to population means and variances with the individual’s observed data. The normal density near the mean or mode of the posterior is used as a proposal density, then weighted according to the posterior density as a correction.
IMPMAPUse the Importance Sampling method assisted by Mode a Posteriori (MAP) estimation. At each iteration, conditional modes and conditional first order variances are evaluated as in the ITS orFOCEmethod. These are then used as parameters to the multivariatSAEMUse the Stochastic Approximation Expectation Maximization method. As in importance sampling, random samples are generated from normal proposal densities. However, instead of always being centered at the mean or mode of the posterior density, the proposalBAYESUse the Markov Chain Monte Carlo (MCMC) Bayesian Analysis method. The goal of theMCMCBayesian analysis is to obtain a large sample set of probable population parameters. Various summary statistics of the population parameters may then be obtained such aDIRECTRequests Monte Carlo Direct Sampling. Creates completely independent samples (unlikeMCMC), and there is no chance of causing bias if the sampling density is not similar enough to the conditional density (unlike IMP). However, it is very inefficient, requiringISAMPLEsettings of 10000 to 300000 to properly estimate the problem.NUTS (NM74) Requests No U-Turn Sampling (NUTS) Markov Chain Monte Carlo (MCMC) Bayesian Analysis Method. Options unique to this method are listed alphabetically under NUTS_.... Other options of interest with their defaults are as follows: MASSRESET=-1 MADAPT=-1 KAPPA=1 TTDF=0 OLKJDF=0 OVARF=1 SLKJDF=0 SVARF=1CHAINAllows the user to create a series of random initial values of THETAs andOMEGA’s, or for reading in initial population parameters from a file of rectangular (rows/column) format. Applies only to the Estimation Step. LNTWOPI(NM74)-
The objective function is reported including the N*LOG(2pi) constant term, where N is the total number of normally distributed data values in the data set. Compare
OLNTWOPI. Either or both may be used. MSFO=filename-
A Model Specification File is output to a file with the given filename. Filename may not contain embedded spaces. If filename contains commas, semicolons, or parentheses, then it must be surrounded by quotes (’ or “). Filename may also contain equal signs if it is enclosed in quotes. Filename may contain at most 71 characters. If filename is the same as any option of the
$ESTIMATIONrecord, it must be enclosed in quotes. If the$NONPARAMETRICrecord is present and also specifies theMSFOoption, the filename is required on the record which appears first in the control stream. If filename is present on both, it must be the same. If the filename is omitted on the second of the two records, the MSF option must be the final option on that record. Default: If theMSFOoption is not used, no MSF is output. If aMSFOis output, then the iteration estimates may also be seen in the original parameterization for those iterations whose summaries appear in intermediate printout. These estimates may be found in fileINTER. WhenMAXEVAL=0and the Covariance Step is implemented, theMSFOoption may also be used, and then a model specification file will be output which will include information from the Covariance Step and from the input model specification file concerning the earlier Estimation Step (in this case there must be an input model specification file). (See model_specification_file). MUM=s-
s is a string of [M|N|D|X]’s with each letter representing a
THETAparameter in numerical order. M indicates that theTHETAshould be Mu modeled. N indicates theTHETAshould not be Mu modeled. D indicates the program will decide if the parameter should be Mu modeled or not. X indicates thatTHETAis involved in a covariate-dependent mixture model and is required if this is the case. Default isDDDD… MUM=v1(n1):v2(n2):v3(n3)…-
An alternative syntax may be used. V is a letter (N,M,D, or X), and n is a number list. For example, to specify that thetas 3 and 5 through 8 should not be MU modeled, theta 2 is a population mixture parameter, and thetas 6 and 12 are to be MU modeled:
MUM=N(3,5-8):X(2):M(6,12) NBURN=n-
When used with the
SAEMmethod n is the maximum number of iterations used to perform the stochastic phase. Default is 2000. When used with theBAYESmethod n is the maximum number of iterations used to perform the burn-in phase. Default is 4000. NITER=n-
When used with the ITS, IMP, and
IMPMAPmethods n is the maximum number of iterations. Default is 50. When used with theSAEMmethod n5 is the number of iterations for the non-stochastic accumulation phase. Default is 1000. When used with theBAYESmethod n5 is the number of iterations used to obtain the stationary distribution. Default is 10000.NITERmay also be codedNSAMPLE. NOCOV=[0|1](NM73)-
If covariance estimation is not desired for a particular estimation step, set
NOCOV=1. It may be turned on again for the next estimation step withNOCOV=0. IfNOCOV=1is set for anFOCE/Laplace/FO step, this is equivalent to$COV NOFCOVsetting. For ITS and IMP, covariance estimation can take some time for large problems, and you may wish to obtain only the objective function, such as in the case of$EST METHOD=IMPEONLY=1after anSAEMestimation.NOCOVhas no effect onBAYESanalysis, as no extra time is required in assessing covariance forBAYES. By default, standard error information for the classical methods (FO/FOCE/Laplace) will be given only if they are the last estimation method, even ifNOCOV=0for an intermediate estimation step. IfNOCOV=1for theFOCE/LAPLACE/FO method, and it is the last estimation step, then standard error assessment for it will be turned off. NOLABEL=[0|1]-
1 indicates that the row of item names for
FILEwill not be written, otherwise 0, the default. Affects the raw output file and all additional output files. NONINFETA=[0|1](NM73)-
Sometimes, gradients are not properly evaluated for classical NONMEM methods, when not all etas are used for all subjects. For example, an eta to a ka absorption rate constant during a fit of a subject with only IV dosing would be considered a non-influential data. If
$EST METHOD=1or 0 is used without theSLOWoption, this can result in evaluating very large and incorrect gradients, which in turn affects the search path, and sometimes the final objective function value. Should this occur, addNONINFETA=1to the$ESTrecord.NONINFETA=0is the default. NOPRIOR=[0|1]-
If prior information was specified using the
$PRIORstatement, then normally the analysis is set up for three stage hierarchical analysis. By defaultNOPRIOR=0, and this prior information will be used. IfNOPRIOR=1, then for the particular estimation, the prior information is not included in the analysis. This is useful if you do not want to use prior information during a maximization (METHOD=IMP,CONDITIONAL,IMPMAP,SAEM, or ITS), but then use it for the Bayesian analysis (METHOD=BAYES). WithNOPRIOR=1,FOCEis still allowed to evaluate an SMATRIX, since prior information is not used. I.e.,$EST NOPRIOR=1and$COV MATRIX=Sare permitted. With NONMEM 7.3, whenNOPRIOR=1is set, the estimation will not useTNPRIprior information (TNPRIshould only be used with FO/FOCE/Laplace estimations). In previous versions of NONMEM,NOPRIOR=1did not act onTNPRIpriors. NOSUB=[0|1](NM74)-
With
NOSUB=0, label substitution will be performed for final estimates in the NONMEM report file. (See$ABBREVIATED). This is the default. WithNOSUB=1, label substitution will not be performed. NOTITLE=[0|1]-
1 indicates the header for
FILEwill not be written, otherwise 0, the default. Affects the raw output file and all additional output files. NUMDER=[0|1|2|3](NM73)-
With
NUMDER=1, NONMEM computes and displays numerically evaluated derivatives of Y or F with respect to eta and eps (G and H). These numeric values are displayed in root.fgh, but are not used in estimation. WithNUMDER=0, file root.fgh is not produced. This is the default. WithNUMDER=2, analytical derivatives values are stored in root.agh WithNUMDER=3, both root.agh and root.fgh are produced. NUMERICAL- Requests that second eta-derivatives for the Laplacian method be obtained numerically.
NONUMERICAL-
Requests that second eta-derivatives for the Laplacian method be computed by
PRED. Not permitted with the combinationLAPLACIANandINTERACTION. Otherwise, this is the default. NUTS_BASE(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.025. NUTS_DELTA(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.8 NUTS_EPARAM(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0 NUTS_GAMMA(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.05 NUTS_INIT(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.075. NUTS_MASS(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is B NUTS_MAXDEPTH(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 10 NUTS_OPARAM(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 1 NUTS_REG(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.0 NUTS_SPARAM(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 1 NUTS_STEPINTER(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0 NUTS_STEPITER(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 1 NUTS_TERM(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0.05 NUTS_TEST(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0 NUTS_TRANSFORM(NM74)-
See Guide
INTRODUCTIONTO NONMEM 7. Default is 0 OACCEPT=n-
Used only with the
BAYESmethod. n has meaning only forOMEGAsampled by the Metropolis-Hastings algorithm. The scaling of degrees of freedom is adjusted so that samples are accepted n fraction of the time. SeeOSAMPLE_M2=. Default is OLKJDF=n(NM74)-
Used with
NUTSmethod,OLKJDFstands for Omega LKJ density degrees of freedom. When 0, the usual inverse Wishart prior is used for Omegas. WhenOLKJDF>0, then the LKJ density is used as the prior, withOLKJDFdegrees of freedom for all omega blocks. In addition, only diagonal elements of theOMEGAprior are used, assuming a density dependent on theOVARFvalue.OLKJDFmay be set >0 when usingMETHOD=BAYESas well, but thetas will then be M-H sampled using theOSAMPLE_M1,OSAMPLE_M2, andOSAMPLE_M3settings. Default is 0. See record$OLKJDF(NM75) to specify LKJ correlation degrees of freedom for each omega block. OLNTWOPI(NM74)-
The objective function is reported including the
NETANINDLOG(2pi) constant term forSAEMandBAYES, whereNETAis the number of etas, andNINDis number of individuals. CompareLNTWOPI. Either or both may be used. THETABOUNDTEST, OMEGABOUNDTEST, SIGMABOUNDTEST-
With NONMEM VI, the estimation step sometimes terminates with the message
PARAMETERESTIMATEISNEARITSDEFAULTBOUNDARY. These options request that the “default boundary test” be performed forTHETA,OMEGA, andSIGMA, respectively.THETABOUNDTESTmay also be coded TBT orTBOUNDTEST;OMEGABOUNDTESTmay also be coded OBT orOBOUNDTEST;SIGMABOUNDTESTmay also be coded SBT orSBOUNDTEST. These options are the defaults. NOTHETABOUNDTEST, NOOMEGABOUNDTEST, NOSIGMABOUNDTEST-
Instructs NONMEM to omit the “default boundary test” for this type of variable, i.e., to behave like NONMEM V in this regard. Any option listed above may be preceded by “NO”. The
THETA,OMEGA, andSIGMAchoices are independent of each other. E.g., it is possible to specifyNOOBT(to prevent the “defaultOMEGAboundary test”) and permit both the “defaultTHETAboundary test” and “defaultSIGMAboundary test”. OMITTED- The Estimation Step is not implemented.
OPTMAP=n(NM73)-
For alternative MAP (eta optimization) methods. With
OPTMAP>0,SLOWoption may be needed.OPTMAP=0Standard variable metric (Broyden, Fletcher, Goldfarb, and Shanno (BFGS)) optimization method used by NONMEM to find optimal eta values (referred to as eta hat) for each subject at the mode of their posterior densities, using analytical derivatives of F with respect to etas (G), and analytical derivatives of F with respect to etas (H), that were supplied by NMTRAN or by the user. This is the default.OPTMAP=1Variable metric method using numerical finite difference methods for first derivatives of F with respect to etas. Necessary when not all code used in evaluating F, G and H for observation event records is abbreviated code (some may be in verbatim code), and/or some portions of the computation of F, G and H are evaluated in a hidden subroutine specified by “$SUBROUTINES OTHER=” and the user-written code does not compute the eta derivatives. WhenOPTMAP=1is present, values of G and H are ignored during eta optimization. This may be used to test user-coded deriatives, because two runs, one withOPTMAP=1and one without it, should give very similar values for theOBJV,WRES, etc. if the user-coded derivatives are correct.OPTMAP=2Nelder Mead method, which uses a secant method, rather than relying on derivatives. ORDER=xxxf-
The values of x may be T (Theta), S (Sigma), and O (Order). The value of f may be U (Upper) or L (Lower). Affects the way theta, omega, and sigma are displayed in the raw and additional output files. xxx gives the overall order, and f gives the order within
OMEGAandSIGMA. Affects the raw output file and all additional output files. The default isTSOL:THETA,SIGMA,OMEGAin Lower triangular form. Does not affect the NONMEM report file. (See order_option). OSAMPLE_M1=n-
Used only with the
BAYESmethod. n is the number of times each iteration thatOMEGAis generated using the Metropolis-Hastings algorithm and an inverse Wishart proposal density that has variance based on the previous samples. If n < 0 this indicates that OSAMPLE_M2=n-
Used only with the
BAYESmethod. n has meaning only forOMEGAsampled by the Metropolis-Hastings algorithm. n is the number of times thatOMEGAis generated using an inverse Wishart proposal density at the presentOMEGAposition and degrees of freedom OVARF=x(NM74)-
Used with
NUTSmethod andOLKJDFoption.OVARFis the weight factor to STD prior to the log sqrtOMEGAdiagonal elements, the normal density of the log square root ofOMEGAcentered about log square root of Omega prior, and scaled withOVARF(see below). That is, log(sqrt(Omega(i))) Normal(log(sqrt(OmegaPrior(i))),1/OVARF). IfOVARF<0, then a half-t-distribution of degrees of ABS(OVARF) is used as the prior to the sqrt ofOMEGAdiagonal elements. UseOVARF=-1 for the half-Cauchy distribution. Default is 1. See also$OVARFcontrol record. PACCEPT=n-
Used only with the
BAYESmethod. n has meaning only for population parameters sampled by the Metropolis-Hastings algorithm. The scaling of variance is adjusted so that samples are accepted n fraction of the time. SeePSAMPLE_M2=. Default is 0.5. PARAFILE=filename-
Name of the “parallel file” (the parallelization profile) that controls parallelization (distributed computing). Default file name if not specified: parallel.pnm or parafile name specified on nmfe command.
PARAFILE=ONturns on parallelization for this$ESTIMATIONrecord.PARAFILE=OFFturns off parallelization for this$ESTIMATIONrecord. PARAFPRINT=n(NM74)-
The print iteration intervals to the parallelization log file can be controlled by this option during parallelization of the
$ESTstep. See also$COVARIANCErecord and nmfe command. Default isPARAFPRINT=1. PHYTYPE=n(NM74)-
Default is 0. By default, after an estimation is performed, the phi(), conditional means of the individual parameters, and their variances, are reported in the root.phi file, where root is the root name of the control stream file. If you wish to have conditional mean etas reported, set
PHITYPE=1. See “Stochastic Approximation Expectation Maximization (SAEM) Method” in GuideINTRODUCTIONTO NONMEM 7. POSTHOC-
This option may be used when the FO method is used. After the Estimation Step terminates, the eta values are estimated for each individual. To estimate the etas based on the initial estimates of
THETA,OMEGA, andSIGMA(found either in the control stream or in a model specification file), also specifyMAXEVAL=0(which omits the Estimation Step). The conditional estimates of the etas are referred to as Conditional Parametric Etas (CPE). NOPOSTHOC-
Etas are not estimated. This is the default with
METHOD=0. May not be used withMETHOD=1. PREDICTION-
Indicates that Y (with NM-TRAN abbreviated code) or F (with a user-supplied
PREDorERRORcode) will serve as a prediction variable, i.e., it will be set to a prediction. Upon simulation, the simulated observation is possibly also being set in Y or F. (However, theDVdata item may instead be set directly to the simulated observation.) Also, etas (if any) are population etas only if epsilons also appear. This is the default. Compare withLIKELIHOOD, -2LOGLIKELIHOOD options. PRINT=n- Iteration summaries are printed for the 0th, every nth iteration, and last iteration. When n=0, no summaries are printed. Default: 9999 (so that summaries are printed for 0th and last iterations).
PRIORC(NM74)- The objective function is reported including the prior constant term (constant term to the prior).
PSAMPLE_M1=n-
Used only with the
BAYESmethod. n has meaning only for population parameters sampled by the Metropolis-Hastings algorithm. n is the number of times that a vector ofTHETA’s andSIGMA’s are generated using a multivariate normal proposal densit PSAMPLE_M2=n-
Used only with the
BAYESmethod. n has meaning only for population parameters sampled by the Metropolis-Hastings algorithm. n is the number of times that a vector ofTHETA’s andSIGMA’s are generated using a multivariate normal proposal densit PSAMPLE_M3=n-
Used only with the
BAYESmethod. n has meaning only for population parameters sampled by the Metropolis-Hastings algorithm. n is the number of times in mode 3 that each parameter is individually sampled. Default is 1. PSCALE_MIN=n, PSCALE_MAX=n(NM74)-
In
MCMCsampling, the scale factor used to vary the size of the variance of the proposal density population parameters (theta/sigma) that are not Gibbs sampled, in order to meet thePACCEPTcondition, is by default bounded byPSCALE_MINof 0.01, andPSCALE_MAX=1000. This should left alone forMCMCsampling, but on occasion there may be a reason to expand the boundaries (perhaps toPSCALE_MIN=1.0E-06,PSCALE_MAX=1.0E+06). RANMETHOD=[n|S|m|P](NM72)-
See
INTRODUCTIONTO NONMEM 7, Reference [5] and [7]. n: the random number generator used for all Monte Carlo EM and Bayesian methods. 0: ran0 of reference [5], minimal standard generator 1: ran1 of reference [5], Bays and Durham. 2: ran2 of reference [5]. 3: ran3 of reference [5], Knuth. (Default) 4: NONMEM’s traditional random number generator used in$SIMULATIONS: sobol method without scrambling, used during importance or direct sampling (methods IMP,IMPMAP, andDIRECT) and only for the purpose of creating quasi-random samples of eta vectors. As of NONMEM 7.3, Sobol may be used forBAYESandSAEMmethods as well. m: the type of scrambing desired 0: no scrambing (S0 is the same as S) 1: Owen type scrambling 2: Faure-Tezuka type scrambling 3: Owen plus Faure-Tezuka type scrambling. P: each subject will receive its own seed path, that will stay with that subject regardless of whether the job is run as a single process or parallel process. (NM74) TheRANMETHODspecification propagates to subsequent$ESTrecords in a given problem, but does not propagate to$CHAINor$TABLErecords. REPEAT-
The search is repeated with the initial estimates being the final estimates from the first search and with new UCP, so that a UCP value of 0.1 now corresponds to a final estimate from the first search. Cannot be used with
STIELTJES. NOREPEAT-
The estimate obtained at the end of the minimization search is taken to be the final parameter estimate. This is the default. Cannot be used with
STIELTJES. REPEAT1-
The search of the first stage of the Stieltjes method is repeated with the initial estimates being the final estimates from the first search and with new UCP, so that a UCP value of 0.1 now corresponds to a final estimate from the first search. May only be used with
STIELTJES. NOREPEAT1-
The estimate obtained at the end of the search of the first stage of the Stieltjes method is taken to be the final parameter estimate at the first stage. This is the default. May only be used with
STIELTJES. REPEAT2-
The search of the second stage of the Stieltjes method is repeated with the initial estimates being the final estimates from the first search and with new UCP, so that a UCP value of 0.1 now corresponds to a final estimate from the first search. May only be used with
STIELTJES. NOREPEAT2-
The estimate obtained at the end of the search of the second stage of the Stieltjes method is taken to be the final parameter estimate at the second stage. This is the default. May only be used with
STIELTJES. SADDLE_HESS=n(NM74)-
SADDLE_HESS=0selects the Hessian matrix last generated by the variable metric method.SADDLE_HESS=1causes the full second derivative information matrix (identical to R matrix in the$COVstep) to be evaluated. Default is 0. See “Resetting the Search to Circumnavigate Saddle Points and Detect Inestimable Parameters” in GuideINTRODUCTIONTO NONMEM 7 for a discussion ofSADDLE_HESSandSADDLE_RESEToptions. SADDLE_RESET=n(NM74)-
SADDLE_RESETis the number of times that a reset should occur in the course of the search. Normally, should be set to 1. Default is 0. SEED=n- The initial seed for the random number generator used for the Monte-Carlo methods. Default is 14455.
CLOCKSEED=[0|1](NM75)-
If
CLOCKSEED=1(default is 0), actual starting seed will be 10000*(seconds after midnight)+SEED. This allows a control stream to produce different stochastic results for automated replications, without the need to modify the seed value in the control stream file in each replication. SELECT=[0|1|2|3](NM73)-
Used with
METHOD=CHAINand$CHAINto specify how the sample is selected.SELECT=0IfISAMPEND>=ISAMPLE, then the default action for selecting betweenISAMPLEandISAMPENDis taken, which for$EST METHOD=CHAINis to find the one giving the best OBJ at the initial values, and for$CHAINis to randomly select a sample, with replacement. This is the default.SELECT=1The sample is selected sequentially fromISAMPLEtoISAMPENDwith each new use of$CHAIN/$SIMLwith multiple sub-problems for the given problem, and with each new$EST METHOD=CHAINwith multiple sub-problems and across problems. WhenISAMPENDis reached, the sample selection begins atISAMPLEagain.SELECT=2Uniform random selection of sample, without replacement. Should the sample selection become exhausted, which would occur ifCHAINor$CHAINrecords are utilized for more thanISAMPEND-ISAMPLE+1 times, subsequent sample selection then occurs with replacement.SELECT=3Uniform random selection of sample, with replacement (this is equivalent toSELECT=0for$CHAIN). SIGDIGITS=n-
Number of significant digits required in the final parameter estimate.
SIGDIGITSis not used by the Monte-Carlo methods. Default: 3. May also be codedNSIGDIGITS. SLKJDF=n(NM74)-
Used with
NUTSmethod,SLKJDFstands for Sigma LKJ density degrees of freedom. When 0, the usual inverse Wishart prior is used for Sigmas. WhenSLKJDF>0, then the LKJ density is used as the prior, withSLKJDFdegrees of freedom. In addition, only diagonal elements of the Sigma prior are used.SLKJDFmay be set >0 when usingMETHOD=BAYESas well, but Sigmas (in cholesky format) will then be M-H sampled using thePSAMPLE_M1,PSAMPLE_M2, andPSAMPLE_M3settings (choleskys of sigma elements are treated as extensions of theTHETAparameters in M-H sampling methods). Default is 0. See record$SLKJDF(NM75) to specify LKJ correlation degrees of freedom for each sigma block. SIGL=n-
n is used to calculate the step-size for finite difference derivatives independent of the
SIGDIGITSvalue. If n=0 or n=100 thenSIGLis ignored andSIGDIGITSis used as in versions prior to NONMEM 7.SIGLshould usually be 2 to 3 times the value ofNSIG. It is not used by theSAEMorBAYESmethods. SIGLO=n(NM72)-
The precision to which the individual etas are optimized. The
SIGLvalue set by the user continues to be the precision (or delta ) setting for the finite difference algorithms in the higher level estimation process forTHETAS,OMEGAS, andSIGMAS. By default, ifSIGLOis not specified, thenSIGLOis set to the same value asSIGL. ShouldSIGLObe used, the recommended setting would be:SIGLO<=TOLSIGL<=SIGLONSIG<=SIGL/3 SIGMABOUNDTEST-
See
OMEGABOUNDTEST. SLOWRequests a slower method of computation. Required when either a-
mixture model is used along with
CENTERING, orNUMERICALis used. If not present, the option is automatically supplied in these two cases. For problems where NONMEM VI does not behave as well (e.g. yields a higher OFV at termination) compared to NONMEM V, inclusion of theSLOWoption may sometimes, but not always, yield NONMEM VI results that are similar to NONMEM V. SLOW=1-
Same as
SLOW. NOSLOW-
Requests a faster method of computation. This is the default (but see
SLOW) SLOW=2-
This option is permitted with
STIELTJES. SORTIndividual contribution to the objective function value and indi-- vidual contributions to the gradients are sorted before they are summed, so that smaller numbers are summed before larger numbers.
NOSORT- Individual contribution to the objective function value and individual contributions to the gradients are summed in the order in which the individual records appear in the NONMEM data set, as was done prior to NONMEM VI. This is the default.
STDOBJ=x(NM74)-
For importance sampling and direct sampling only, if
ISAMPENDis specified as an upper integer value, andSTDOBJis set to a real value greater than 0, then NONMEM will vary the number of Monte Carlo samples under each subject betweenISAMPLEandISAMPEND, until the stochastic standard deviation of the objective function falls belowSTDOBJ. STIELTJES-
A set of tentative population estimates are first obtained using some 1st- or 2nd-order method (but not teh
METHOD=HYBRIDmethod). A tentative value for the integral (i.e. an area) is obtained. Then numerical integration is used to obtain second-stage estimates. A more detailed description ofSTIELTJESfollows: Stieltjes is a two-stage method. In the first stage, a set of tentative population estimates are “quickly” obtained using some 1st- or 2nd-order population conditional method specified on the$ESTIMrecord in the usual way to obtain fairly reliable estimates. Include theMETHOD=CONDITIONALoption on the$ESTIMATIONrecord. However, theMETHOD=HYBRIDmethod cannot be used. At this first stage, for each individual, a tentative value for the integral (i.e. an area) is obtained. The first-stage estimates are used as initial estimates in the second stage, wherein another objective function is minimized to obtain a final set of parameter estimates. Numerical integration is used to obtain second-stage estimates. The integral will be exact in the case where the intraindividual model is of mean-variance kind and is linear in eta. The second stage takes much more time than the first stage, and the resulting parameter estimates are at least as good as the first-stage estimates, perhaps better. In the second stage, conditional estimates of eta are not used, but the functions that are minimized to obtain conditional estimates are still evaluated at many values of eta. Generally though, sufficiently good estimates are obtained by using conditional estimation methods, or even the First-Order Estimation method, and one needs to use the Stieltjes Estimation method only with somewhat pathological data designs. Simply also include theSTIELTJESoption (along with an optionalGRIDoption) on the$ESTIMATIONrecord. A default grid on eta-space is used for numerical integration, but one one may set one’s own grid. A grid is specified in terms of ellipsoidal coordinates, with origin at eta=0. With these coordinates, the length of a point P is given in fractile units - the first-stage estimate of the fraction of area enclosing all points with same or less length as that of P. A direction is specified by m=n-1 angles, where n is the number of (active) etas. At the second stage, the fraction of area enclosing all points of length less than r0 is taken to be identical to that computed at the first-stage. To obtain the fraction of area enclosing points of length greater than r0, numerical integration is used. A grid is obtained by first taking the interval [r0,r1] of the length axis and dividing this interval into nr equal subintervals. For each such subinterval, there is a region enclosing all points of length lying in the subinterval. There is yet another region (the tail region) enclosing all points of length between r1 and .9999. Within each region, the integrand is evaluated at a number of points, distributed fairly uniformly throughout the region, but with approximately the same length. The number of points is taken to be (ns**m)*(2n), where ns is some integer. Think of ns as the number of points in a single quadrant of a 2-dimensional ellipse in n-space, and nsm as the number of points in a orthant of m-dimensional space. 2**n is the total number of orthants. See the description to optionGRIDabove to specify grid information. SVARF=x(NM74)-
Used with
NUTSmethod andSLKJDFoption.SVARFis the weight factor to STD prior to the log sqrtSIGMAdiagonal elements, the normal density of the log square root ofSIGMAcentered about log square root ofSIGMAprior, and scaled withSVARF(see below). That is, log(sqrt(Sigma(i))) Normal(log(sqrt(SigmaPrior(i))),1/SVARF). IfSVARF<0, then a half-t-distribution of degrees of ABS(SVARF) is used as the prior to the sqrt ofSIGMAdiagonal elements. UseSVARF=-1 for the half-Cauchy distribution. Default is 1. See also$SVARFcontrol record. TBLN=n(NM75)-
Used with
$EST METHOD=CHAINand$CHAINrecords to allow selecting a table within a raw output file. See “Method for creating several instances for a problem starting at different randomized initial positions” in GuideINTRODUCTIONTO NONMEM 7. THETABOUNDTEST-
See
OMEGABOUNDTEST. THIN=n(NM74)-
The Bayesian records retained in the raw output file may be adjusted by every THINth iteration. So, if
THIN=10, then every 10th iteration is recorded in the raw output file. ThePRINToption controls only the iterations printed to the console and NONMEM report file. Default is 1. TPU=n(NM75)-
If TPU>0, use
THETA_PRIORUroutine in ..`THETA_PRIORU.f90. You can make a copy ofTHETA_PRIORU.f90, modify it, call itUSERPRIORT.f90, for example, then specify it as anOTHERroutine:\(SUBR OTHER=USERPRIORT.f90.` See also \`\)OLKJDFand \$SLKJDFforOMEGAandSIMGA`. Default is 0. TTDF=n(NM74)-
TTDFstands for Theta t-density degrees of freedom. It is used withNUTSmethod. Default is 0. When 0, the usual normal density prior is used as a prior density for thetas. WhenTTDF>0, a t-distributed prior is used.TTDFmay be set >0 when usingMETHOD=BAYESas well, but thetas will then be M-H sampled using thePSAMPLE_M1,PSAMPLE_M2, andPSAMPLE_M3settings.TTDFmay be a real number. See also$TTDFcontrol record (NM75) to specify degrees of freedom for each theta. The value ofTTDFoverrides$TTDF. ZERO=list-
Required with
METHOD=HYBRID. A list of indices for etas which are fixed to zero during the Estimation Step. “list” contains one or more integers. If more than one, they must be surrounded by parentheses. The list must be contained entirely on one line. The indices may be separated by commas or spaces.
Reserved Variables that are of Interest During the Estimation Step
MUFIRSTREC(NM74)-
The
MUFIRSTRECoption can speed up theNUTSmethod, and also ordinaryBAYES,FASTFOCE, ITS, and the EM methods. SetMUFIRSTREC=1in$PREDor$PK.MUFIRSTREC=1selects the covariate of the first record of the subject, rather than averaging among its records when using that covariate in a MU reference. The first statement of the$PREDor$PKblock should be include nonmem_reserved_general. OBJQUICK(NM74)-
The
OBJQUICKoption can speed up theNUTSmethod, and also ordinaryBAYES,FASTFOCE, ITS, and the EM methods. SetOBJQUICKin$PREDor$PK.OBJQUICK=0Default. StandardNONMENprocessing of the model occurs.OBJQUICK=1Certain tests and initializations are skipped.OBJQUICK=2A simplified modeling process occurs, but which cannot be used when$LEVELor$MIXis used in the model. The first statement of the$PREDor$PKblock should be include nonmem_reserved_general.
REFERENCES: Guide I, section C.3.5.1; Guide II, section E , F; Guide IV, section III.B.14 , IV.G; Guide V, section 9.4.1, , 13.2; Guide VII, section I , II , III; Guide Introduction_7
15 $ETAS, $PHIS
MEANING: Specifies Initial Values for Etas or Phis
CONTEXT: NM-TRAN Control Record
USAGE:
$ETAS [[value1 [value2] [value3] … [valuen]]
[FILE=filename [FORMAT|DELIM =s] [TBLN=n]] [ITERATION=n]]$PHIS [[value1 [value2] [value3] … [valuen]]
[FILE=filename [FORMAT|DELIM=s1] [TBLN=n]] [ITERATION=n]]SAMPLE:
$ETAS 0.4 3.0 3.0 5.0
$PHIS 0.4 3.0 3.0 5.0$ETAS FILE=myprevious.phi FORMAT=s1pE15.8 TBLN=3 $PHIS FILE=myprevious.phi FORMAT=s1pE15.8 TBLN=3 $ETAS FILE=myprevious.iph TBLN=3 ITERATION=123
NONMEM describes the use of these records with messages in the report file such as the following:
LOADED 3 PHI/ETA ITEMS FROM CONTROL STREAMDISCUSSION:
By default, the initial value used for ETA’s in the Estimation Step search is 0. The $ETAS and $PHIS records provide different initial estimates. Optional.
OPTIONS:
There are two forms:
$ETAS value1 [value2] [value3] ...[[valuen]-
All of the subjects in the data set will be given these initial values of etas. If fewer values are listed than the number of etas in the problem, the value 0 will be used for the remaining etas. Any real value (positive, negative, zero) may be specified.
When the record is
$PHIS, values are entered as phi values, convenient for EM methods. The eta values will then be evaluated as eta(i)=phi(i)-mu(i) for each eta, where mu(i)=mu_i is evaluated according to their definitions in the$PKsection. FILE=filename FORMAT=s TBLN=n ITERATION=n-
Uses initial etas and/or phis for an entire set of subjects from a file .phi, .phm (in the case of mixture problems) of a previous analysis, or .iph file.
With
FORMAT, s defines the delimiter [,|s(pace)|t(ab)] followed by a Fortran format specification. The default is s1PE12.5.FORMATshould at least have the delimiter appropriate to read the file. May also be codedDELIM. For more details, see the format help item: (See format). SeeINTRODUCTIONTO NONMEM 7,FORMAT=s1PE11.4TBLNis the table number in the file. IfTBLNis not specified, it defaults to 1, i.e., the first set of etas/phis are brought in.ITERATIONis the iteration number in a .iph file (not relevant for .phi or .phm file). As a .iph file has bothETA() and PHI() items,ETA()s will be selected for a$ETASrecord, and PHI() will be selected for a$PHISrecord. The firstITERATION>0 is selected, unless a particular iteration is specified. In matching the etas/phis to the data set given in$DATAof the control stream file, the attempt will be to matchIDnumbers rather than subject numbers, if anIDcolumn in the file exists, which it will, if you are using a .phi or .phm file generated from a previous nonmem analysis. The phc/etc variances will also be brought in.
One purpose to bringing initial eta/phi and etc/phc values is you can readily resume an analysis, if an MSF file was not set up in the previous analysis (the MSF file system is still the most complete information transfer for resuming an analysis.
FURTHER DISUCSSIONThe etas from $ETAS/$PHIS can be used in several ways.
In METHOD=0 (FO), they are ignored, because FO is specifically designed as a first order Taylor series approximation process centered around eta=0.
In METHOD=1 (FOCE), they are ignored unless MCETA>0. When MCETA>0, then various starting etas are tested, including a set from $ETAS, when available.
In Bayes, SAEM, IMP MAPITER=0 they are used as the starting etas.
In MAP estimation methods, such as METHOD=1, or ITS, or IMP MAPITER>0, or IMPMAP, and if MCETA>0, then these etas are one of the initial eta vector positions tested (during the first iteration), and the one giving the lowest OBJ is then selected.
In cases where FNLETA=2, the estimation step is skipped, and etas inputted from $ETAS are treated as if they were the final result of an estimation.
For examples and discussion:
See INTRODUCTION TO NONMEM 7, $ETAS and $PHIS Record For Inputting Specific Eta or Phi values
REFERENCES: Guide Introduction_7
16 $FORMAT
MEANING: Specifies significant digits for the NONMEM report file
CONTEXT: NM-TRAN Control Record
USAGE:
$FORMAT FMTN=n (NM75)$FORMAT FMTN=3 (default) (NM75)
You may now display any significant digits for thetas, omegas, and sigmas results, and variance- covariance of estimates, listed in the NONMEM report file. The FMTN is the number of significant digits (which is by legacy and default 3), between 3 and 23. This also applies to $TABLE outputs to the NONMEM report file. The FORTRAN format will be formed as 1PE{FMTN+6}.{FMTN-1}. For example FMTN=6 will be 1PE12.5. If you wish G field format, set the FMTN to a negative value. For example FMTN=-4 will be 1PG10.3.
It is recommended that you place the $FORMAT record immediately after the $PROB record:
$PROB My problem $FORMAT FMTN=5
This FMTN precision format will be in effect for outputs of all problems, until another $FORMAT record is given for a new $PROB in the control stream.
REFERENCES: Guide Introduction_7
17 $INDEX, $INDXS
MEANING: Defines values for the PRED/PREDPP INDXS array
CONTEXT: NM-TRAN Control Record
USAGE:
$INDEX [label1|value1] [label2|value2] [label3|value3] …
SAMPLE:
$INDEX DOSE 1DISCUSSION:
Optional. Used only with user-supplied FORTRAN subroutines (ERROR, PK, INFN, PRED) which make explicit use of the INDXS array. May also be coded $INDXS or $INDEXES.
OPTIONS:
The labels are those of data items on the $INPUT record. The values are integers no larger than the number of data items in the NONMEM input data set. Either the index of the data items with labeli or valuei is stored in INDXS(i). (The index of a data item is its position in the NONMEM data record.)
REFERENCES: Guide I, section C.4.1; Guide IV, section III.B.3; Guide VI, section III.C , V.A
18 $INFN
MEANING: Marks the beginning of abbreviated code for the INFN routine
CONTEXT: NM-TRAN Control Record
USAGE:
$INFNabbreviated code
SAMPLE:
$INFN
IF (ICALL.EQ.1) CALL SUPP (1,1)DISCUSSION:
The $INFN record is used to describe initialization processing for a NONMEM run, or NONMEM problem, or finalization processing for a NONMEM problem. It is used with PREDPP.
General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules for $INFN blocks are described elsewhere. (See Initialization-Finalization block, Finalization example).
RECORD ORDER:
Follows $SUBROUTINES.
REFERENCES: None
19 $INPUT
MEANING: Defines the data item types in the data set
CONTEXT: NM-TRAN Control Record
USAGE:
$INPUT item1 item2 item3 …
SAMPLE:
$INPUT ID DOSE TIME CP=DV WTDISCUSSION:
The items define the data item types that appear in the NM-TRAN data records, and define the order of their appearance.
This record is required. It must precede any other NM-TRAN control record that refers to specific data item types.
With NONMEM VI 2.0 and later versions, the length of a single $INPUT record (and all records of the NM-TRAN input file) is at most 160 characters. (Previously, it was 80 characters.) With NONMEM 7.3, the maximum length is given by FSD in resource/SIZES.f90 (FSD=67000 with NONMEM 7.3). With NONMEM 7.2 and higher, both lower and upper case may be used for all user-defined and reserved words in the control stream. With NONMEM 7.3 and higher, & may be used at the end of any line of the control stream to indicate that the line is to be continued, including control records as well as abbreviated code.
Multiple $INPUT records may be used. Each continues the previous record.
OPTIONS:
Each item has form B or A=B, where A and B are data item labels.
With previous versions of NONMEM labels were restricted to 4 characters in length and could not include the character . With NONMEM 7 a label consists of 1-24 letters (A-Z), numerals (0-9), and the character ’’, beginning with a letter. (The length 24 is specified by constant SDF in SIZES) (See SIZES).
The labels may be used in subsequent NM-TRAN control records and will be used as labels for data items in NONMEM output.
Certain data item labels are reserved and refer to data items that may be needed by NONMEM or PREDPP, i.e.,
ID L1 L2 DV MDV
RAW_ MRG_ RPT_
TIME DATE DAT1 DAT2 DAT3 DROP SKIP EVID AMT RATE SS II ADDL
CMT PCMT CALL CONTCertain data item labels are semi-reserved, in that they have reserved meanings if used in $INPUT, but can also be user-defined in abbreviated code, in which case they have no reserved meaning, i.e.,
XVID1 XVID2 XVID3 XVID4 XVID5(See evid data item). REPL_
Others are labels assigned by the user, e.g., to label user (concomitant) data.
Certain labels should not appear in the $INPUT record:
ETA1 ETA2 ETA3 ETA4 ETA5 ETA6 ETA7 ETA8 ETA9Labels for basic PK parameters (e.g., CL, V, K, KA) Labels for additional PK parameters (e.g., S1, F0, R1, F1) Arguments of subroutines internal to NONMEM/PREDPP Mu variables (e.g., MU_ MU_i )
When the form A=B is used, at least one of the labels A or B must be a reserved label. If A or B is a non-reserved label, it is a synonym for the reserved label. The synonym is used as the label in NONMEM output.
If DROP (or SKIP) is used as a data item label or synonym, the data item type will not appear in the NONMEM data set. DROP (or SKIP) may be used with more than one item.
If the label DATE (or DAT1, DAT2, or DAT3) is used, DATE=DROP causes the data item to not appear in the NONMEM data set. However, NMTRAN will adjust the TIME data item to reflect the date. (See date data item).
REFERENCES: Guide IV, section III.B.2 , V.C.1; Guide V, section 6.5; Guide VI, section V.A
20 $LDFOLD
MEANING: Revert to pre NONMEM 7.5.1 interpretation of loss of degrees of freedom (LDF).
CONTEXT: NM-TRAN Control Record
USAGE:
$LDFOLD (NM751)
$LDFOLDIf there is a reason that you need your problem to handle LDFs in the manner of previous NONMEM versions, insert $LDFOLD after the first $PROBLEM:
$PROB My problem $LDFOLD
and this will revert to the old default handling of LDFs. Only the new methods (ITS/IMP/SAEM/BAYES) are affected by a change in default behavior regarding LDFs of NONMEM version 7.5.0 to 7.5.1.
REFERENCES: Guide Introduction_7
21 $LEVEL
MEANING: Specifies Nested Random Levels Above Subject ID
CONTEXT: NM-TRAN Control Record
USAGE:
$LEVEL item=(n1[m1] , n2[m2] … ) …
SAMPLE:
$LEVELDISCUSSION:
Identifies one or more Super ID data items.
- item Item is the name of a data item listed on
$INPUT. It defines an -
additional nested random level. and is referred to as a “super
ID” data item. The first superIDitem defines an additional random nesting level above that of subjectID. More than one superIDitem may be listed on$LEVEL. Each subsequent superIDitem defines an additional nesting level above that of the previous nesting level, i.e., above the previous superID. nk[mk]-
States that
ETA(nk) is associated with this superIDitem, andETA(mk) is nested withinETA(nk).
With NONMEM 7.4, a short-hand notation may be used to describe a series of values of nk. A sequence of values for nk can be described as start TO end BY interval
TO is required. The character : may be used instead of TO. BY is optional. Default is 1. The value of BY may be negative.
If the second value of BY differs, the same syntax may also be used for mk.
Nesting levels below the subject ID is modelled as with previous versions of NONMEM. (See Interoccasion_variability example).
The order that super ID’s are listed on $LEVEL defines their nesting level. The order that standard and super ID’s are listed on $INPUT (i.e., the order in which they appear in each record of the data set) is immaterial.
When $LEVEL is used with FOCE ($ESTM METHOD=1), the SLOW option is required, and MATRIX=R is required with $COV.
EXAMPLE:
$INPUT ... ID ... SID ... CID ...… $PK MU_1=THETA(1) MU_2=THETA(2) CL=DEXP(MU_1+ETA(1)+ETA(5)+ETA(9)) V1=DEXP(MU_2+ETA(2)+ETA(6)+ETA(10)) … $LEVEL SID=(5[1],6[2]) CID=(9[5],10[6])
The data item named SID is the site ID. The data item named CID is the country ID. There are several sites belonging to one country, some other sites belonging to another country, etc. For clearance, eta(9) is the country variability that has nested in it the site variability eta(5), which in turn has nested in it the subject variability (the standard ID data) eta(1). For V1, eta(10) is the country variability that has nested in it the site variability eta(6), which in turn has nested in it the subject variability (the standard ID data) eta(2).
An alternate way of coding the $LEVEL records is
SID=(5 to 6[1])
CID=(9 to 10[5])NONMEM performs appropriate summary statistics for eta(5), and makes the appropriate constraints on eta(5), so eta(5) changes by site, that is, by every SID value change, and not by every ID value change.
The above method, using $LEVEL, is a linearized approximation at the super ID level, and takes advantage of a dual OBJ function call, freely allowing all etas to vary on the first call of OBJ, then averaging the SID etas, fixing them to these averages, and going through another OBJ call to allow the subject (ID) etas to be assessed. This approximation method works very well for the EM and Monte Carlo methods, and reasonably well for the FOCE/Laplace methods.
To perform an exact analysis, separate thetas must be defined for each value pertaining to a super ID data item, so that theta is shared only by the subjects with the particular SID value. $LEVEL is not used. (See superid3_6).
If there are multiple $PROBLEM records, $LEVEL should be restated with each problem for which it is still relevant. For example, this is the case with $SUPER problems and $LEVEL.
See also LEVWT option of the $ESTIMATION record (NM74). By default, LEVWT=0, and weights each level value equally, regardless of number of subjects per level value. If you wish to weight according to number of subjects for that value, set LEVWT=1 on the $EST record.
REFERENCES: Guide Introduction_7
22 $MIX
MEANING: Marks the beginning of abbreviated code for the MIX routine
CONTEXT: NM-TRAN Control Record
USAGE:
$MIXabbreviated code
SAMPLE:
$MIX
NSPOP=2
P(1)=THETA(5)
P(2)=1-THETA(5)DISCUSSION:
The $MIX record is used to describe the mixture probabilities of a mixture model. It is evaluated with individual records.
General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
NSPOPAn integer variable. The number of sub-populations. Must be given a value when ICALL=1.
P(i)
For each i (i=1, … , NSPOP), P(i) is the modeled fraction of the population in the ith subpopulation. The sum of the P(i) should equal 1. In principle, the P(i) can change from individual to individual. If for a given individual, the second (for example) subpopulation doesn’t apply, then set P(2)=0 for that individual. MIXP may be coded instead of P; they are synonymous in the context of the $MIX block.
Right-hand quantities in assignment statement and in conditions:
THETA(n).MIX-defined items that appeared earlier as left-hand quantities.
ICALL
ICALL=0: Run initialization.
ICALL=1: Problem initialization.
ICALL=2: Normal call.
ICALL=4: Simulation.Data items listed in DATA option of $CONTR record E.g., assume that the following records appear in the control stream prior to the $MIX block:
$INPUT ... STDY ...
$CONTR DATA=(STDY)Then STDY may be used on the right in $MIX. STDY and STDY(1) both refer to the value of STDY on the first observation record of the individual record. STDY(i) refers to the value of STDY on the ith. observation record of the individual record. TEMPLT may be used. (See MIX CONTR: TEMPLT).
Global Variables in Modules Certain variables in FORTRAN modules can be used. (See Variables_in_modules)
May not include:
EXIT, CALL , DO WHILE / ENDDO statements
COMRES, CALLFL pseudo-variables
Forbidden Variable Names:
NEWIND,ETA(i),EPS(i),ERR(i) COM(i)Variables defined in $MIX are not listed in module NMPRD4 and may not be displayed in $TABLE and $SCATTER.
RECORD ORDER:
Follows $SUBROUTINES.
REFERENCES: Guide IV, section III.B.4 , III.B.6; Guide IV, section IV.E.1 , 4.E.2; Guide VI, section III.L.2 , Figure 6
23 $MODEL
MEANING: Specifies the MODEL subroutine of PREDPP
CONTEXT: NM-TRAN Control Record
USAGE:
$MODEL [NCOMPARTMENTS=n1] [NEQUILIBRIUM=n2] [NPARAMETERS=n3]
[COMPARTMENT=([name] [attribute1] [attribute2] ...)] ...
[LINK compnamea [TO|AND] compnameb BY k [l]] ...
[I_SS=n]SAMPLE:
$MODEL NPARAMETERS=3
COMP=(DEPOT DEFDOSE INITIALOFF) COMP=(CENTRAL DEFOBS NOOFF)DISCUSSION: Required with a general ADVAN (ADVAN5,6,7,8,9,13,14,15,16,17,18).
OPTIONS:
NCOMPARTMENTS=n1-
Total number of compartments other than the output compartment. Default: the number of
COMPARTMENToptions. May also be coded NCM orNCOMPS. NEQUILIBRIUM=n2- Number of equilibrium compartments. Default: 0
NPARAMETERS=n3-
Number of basic PK parameters. Default: The number of basic PK parameters defined in the
$PKabbreviated code. May also be codedNPARAMS. May be 0 with the general non-linear models (ADVAN6,ADVAN8,ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADVAN16,ADVAN17,ADVAN18). COMPARTMENT=([name] [attribute1] [attribute2] ...)-
Each
COMPARTMENToption defines a single compartment. Compartments are numbered in the order in which they are defined. The name option gives the name for the compartment. The name option may not be one of the compartment attributes below, unless it is enclosed in quotes (’ or “). If the name option is not used, then the compartment is named”COMPn,” where n is the compartment number. Attributes are chosen from the following list. When an attribute is not chosen, its opposite is the default.INITIALOFF- Compartment is initially off.NOOFF- Compartment may not be turned on or off.NODOSE- Compartment may not receive a dose.EQUILIBRIUM- Compartment is an equilibrium compartment (ADVAN9,ADVAN15, andADVAN17only; impliesNODOSE).EXCLUDE- Compartment amount is excluded from the computation of the amount (Amt) of the output compartment (ADVAN9,ADVAN15, andADVAN17only). [Amt=(total amount of drug thus far input into system) minus (total amount remaining in the system)] The following two attributes have no opposites.DEFOBSERVATION- Compartment is the default observation compartment.DEFDOSE- Compartment is the default dose compartment. If no compartment has theDEFOBSERVATIONattribute, the default is the first compartment with the nameCENTRAL; otherwise, the first compartment. If no compartment has theDEFDOSEattribute, the default is the first compartment with the nameDEPOTwhich may receive doses; otherwise, the first compartment which may receive doses. LINK compname [TO|AND] compname BY k [l]-
Link clauses are used with
ADVAN5andADVAN7, but only in the absence of$PKabbreviated code. They are rarely used, and are described in Guide IV. I_SS=n-
I_SSmay be used with the general non-linear models (ADVAN6,ADVAN8,ADVAN9,ADVAN13,ADVAN14,ADVAN15) to request the initial state feature of PREDPP. Values of n are 0 No initial state state (the default) 1 Initial steady state 2 Initial steady state, adds to current compartment amounts. 3 Initial steady state, use current compartment amounts as initial estimates.
The attributes INITIALOFF NODOSE define an output-type compartment. As with the output compartment, it is possible to use a negative value of CMT to obtain an observation and turn off such a compartment with one observation record. Like the output compartment, it is initially off, and it remains off (so that the amount therein remains zero) until it is explicitly turned on by an other type event record which has the output compartment’s number in the CMT data item. Unlike the output compartment, a differential equation (DADT) must be supplied for an output-type compartment.
(See advan68, advan9_15, $pk) (See Initial Steady State: I_SS,ISSMOD).
RECORD ORDER: Follows $SUBROUTINES Precedes $PK (if present)
SYMBOLIC LABEL SUBSTITUTIONS OF MODEL COMPARTMENTS (NM75)Compartment names defined in $MODEL are automatically available for substitution in abbreviated code. This is referred to as “implicit” compartment name substitution. It is an alternative to “explicit” compartmet name substitution using $ABBR REPLACE records
For example:
$MODEL
COMP=(GUT,DEFDOS)
COMP=(CENTRAL,DEFOBS)
COMP=(PERI)allows susbsitutions to be made for A(GUT), DADT(GUT), A(CENTRAL), DADT(CENTRAL), etc, so you may use these symbols in your abbreviated code, as in the following:
$DES
DADT(GUT)=-KA*A(GUT)
DADT(CENTRAL)=KA*A(GUT)-(KCP+KC0)*A(CENTRAL)+KPC*A(PERI)
DADT(PERI)=KCP*A(CENTRAL)-KPC*A(PERI)… $ERROR IPRED=A(CENTRAL)/S2
In the generated code, compartment names are replaced by the appropriate values 1, 2, etc.
See INTRODUCTION TO NONMEM 7, Symbolic Label Substitutions of Model Compartments
REFERENCES: Guide IV, section V.C.4; Guide VI, section VI.B
24 $MSFI
MEANING: Gives the name of an input Model Specification File
CONTEXT: NM-TRAN Control Record
USAGE:
$MSFI filename [NORESCALE|RESCALE] [NPOPETAS[=n]]
[ONLYREAD] [NOMSFTEST|MSFTEST]
[VERSION=n]
[NEW]SAMPLE:
$MSFI MSF13DISCUSSION: This record gives the name of an input Model Specification File.
OPTIONS:
- filename
-
Name of the Model Specification File. Must be the first option. Filename may not contain embedded spaces. If it contains commas, semicolons, or parentheses, then it must be surrounded by single quotes ’ or double quotes “. Filename may also contain equal signs if it is enclosed in quotes. If filename is the same as any option of the
$MSFIrecord, it must be enclosed in quotes. Filename may contain at most 71 characters. NORESCALE-
If a search is continued, it is continued just as it would have been in the previous run. This option has no effect if the Estimation Step is not implemented or if the step is implemented, but using different options on the
$ESTIMATIONrecord from those used with the previous run. This is the default option. RESCALE-
The search is to be restarted with initial estimates taken to be the final estimates from the previous run, so that a UCP value of 0.1 now corresponds to a final estimate from the previous run. This option may be used only if the search with the previous run terminated successfully and all the options used on the
$ESTIMATIONrecord coincide with those used with the previous run (except theMAXEVALoption). NPOPETAS[=n]-
If the data are to be understood to be population data, the option
NPOPETASmay be needed, and then the part “=n”, n>0, may also need to be coded. The integer n should be the number of population eta variables. The part “=n” is required when the$ERRORblock describes a model that changes the value of F, and there is no$PKblock. It is also required when variables A(n) are used in the$PKabbreviated code. If the data are to be understood to be single-subject data, the optionNPOPETAS=0may be needed. May also be codedPOPETAS. ONLYREAD-
This option should be used if and only if the model specification file is being used to convey prior information to a succeeding problem in the control stream (See
TNPRI). No task records may appear in a problem specification containing a$MSFIrecord with this option.
When the $MSFI record is used in a problem specification, $THETA, $OMEGA and $SIGMA records should not appear in that specification. It is permissible for the data file to differ from the original data file, but usually this is not done.
MSFTEST- Prevents an MSF file from being utilized in a subsequent control stream file or problem if there were errors. This is the default.
NOMSFTEST-
Sometimes the
MSFIerror check is too strict. This occurs particularly when using classical NONMEM methods. To turn ofMSFIerror checking, useNOMSFTEST. VERSION[=n]-
Read in MSF files from previous versions. With NONMEM 7.5.0, choices are:
$MSFImyfile.msfVERSION=7.4.0$MSFImyfile.msfVERSION=7.3.0$MSFImyfile.msfVERSION=7.2.0$MSFImyfile.msfVERSION=7.1.2$MSFImyfile.msfVERSION=7.1.0$MSFImyfile.msfVERSION=6.2$MSFImyfile.msfVERSION=6.1 - NEW When the problem that created the MSF file has successfully com-
-
pleted, calling for a resumed or new estimation is prevented when the method is FO/
FOCE/Laplace. To allow analysis to continue, or to allow an analysis on a new data set, resuming from the final parameters of the MSF file, use the option NEW:$MSFImyfilename NEW.
With NONMEM 7.3 and later, when MSF or MSFO option is used to specify an MSFO file in the $EST record e.g., $EST … MSFO=msfroot.msf then in addition to the main MSF file msfroot.msf, file msfroot_ETAS.msf containing individual etas will also be produced, and provide additional information when a $MSFI record is used in a subsequent problem or control stream. This is referred to as an “extra” msf file. If the Covariance Step is also implemented, files msfroot_RMAT.msf and msfroot_SMAT.msf containing intermediate information on the R matrix and S matrix will also be produced. These files provide information when a $MSFI record along with a $COV … RESUME record is used in a subsequent problem or control stream.
The use of an extension, e.g., .msf, is optional. If the _ETA file is not present, NONMEM issues a warning: WARNING: EXTRA MSF FILE COULD NOT BE OPENED: c5msf2x_ETAS
There is no warning if _SMAT and/or _RMAT are not present.
REFERENCES: Guide I, section B.3; Guide II, section E.3; Guide III, section 3.2; Guide IV, section III.B.12; Guide Introduction_7
25 $NONPARAMETRIC
MEANING: Instructions for the NONMEM Nonparametric Step
CONTEXT: NM-TRAN Control Record
USAGE:
$NONPARAMETRIC [MARGINALS|ETAS] [MSFO=filename] [RECOMPUTE]
[EXPAND] [NPSUPP=n | NPSUPPE=n]
[BOOTSTRAP [STRAT=label] [STRATF=label]]
[PARAFILE=[filename|ON|OFF]
[NPESTIM=[0|1]] [NPMAXITER=n]
[UNCONDITIONAL|CONDITIONAL] [OMITTED]SAMPLE:
$NONPARAMETRIC ETASDISCUSSION:
Optional. Requests that the NONMEM Nonparametric Step be implemented. When present, the $ESTIMATION record must also be present and must specify METHOD=1 or POSTHOC.
For a given eta, the points of support are the vector of posthoc estimates of that eta for all individuals (i.e., the CPE values for that eta), which is essentially equal to the number of individuals in the data set.
OPTIONS:
MARGINALS-
Requests that marginal cumulatives be obtained (the default). These values are found in NONMEM global variables (See Nonparametric Density:
DEN_,CDEN_) ETASRequests that conditional (nonparametric) estimates of eta values-
be obtained. (Also called the
CNPE). MSFO=filename-
A Model Specification File is output to the given filename. Filename may not contain embedded spaces. If filename contains commas, semicolons, equal signs, or parentheses, it must be enclosed in quotes (’ or “). Filename may contain at most 71 characters. If filename is the same as any option of the
$NONPARAMETRICrecord, it must be enclosed in quotes. TheMSFOoption may appear without a file name. More precisely, if the$ESTIMATIONrecord is also present, and it also specifies theMSFOoption, then the filename is required only on one of the two records,$ESTIMATIONor$NONPARAMETRIC, whichever one appears first in the control stream. If the filename appears present on both records, it must be the same on both records. If the filename is omitted on the second of the two records, the MSF option must be the final option on that record. Default: No MSF is output. RECOMPUTE- Requests that the nonparametric density estimate occurring in an input MSF should be ignored; the nonparametric estimate should be recomputed.
EXPAND-
After the parametric estimation is performed, the final eta MAP (or empirical Bayes estimates, EBE) estimates, based on the final
SIGMAS,OMEGAS, andTHETAS, are normally used as support points. WhenEXPANDis selected, an alternative set of EBEs are evaluated using the initialOMEGAvalues, but using the finalTHETASandSIGMAS. NPSUPP=n-
Number of total support points to be used. If
NPSUPP>number of subjects, then extra support points are randomly created from the finalOMEGAS(even whenEXPANDis selected). Only one ofNPSUPPorNPSUPPEmay be specified. NPSUPPE=n-
Number of total support points to be used. If
NPSUPPE>number of subjects, then extra support points are randomly created from the initial, presumably inflated,OMEGAS(even whenEXPANDis not selected). Only one ofNPSUPPorNPSUPPEmay be specified. BOOTSTRAP-
The original data set is fitted during the parametric estimation (
$EST), and the eta support points from the original data set are used for the nonparametric version. However, a bootstrap sample, with subjects uniformly randomly selected with replacement from the original data set, is used for the nonparametric distribution analysis. STRAT- The label of a data item that serves as the stratification. This splits the data set into distinct sub-sets, guaranteeing a specific number of subjects will be selected from each category.
STRATF-
The label of a data item that contains the fraction that should represent a category in the bootstrapped data set. Without
STRATF, the number of subjects to be taken from a given category is proportional to the number of subjects. CONDITIONAL-
The Nonparametric Step is implemented only when the Estimation Step terminates successfully or is not implemented (i.e., the
$ESTIMATIONrecord specifiesMAXEVAL=0). This is the default. NPESTIM=[0|1]-
The default non-parametric estimation method for assessing support point probabilities is an (non-Monte Carlo) expectation-maximization (EM) method. You may also choose the non-negative least squares method (NNL, [29]), with
NPESTIM=1. While it is touted to be faster than EM (NNL is quadratically convergent whereas EM is linearly convergent), several tests have not indicated that NNL is any strong speed advantage. The reason is, that the computation time increases by at least the square of the number of support points (MAX(NSPSUPP,NIND)) with the NNL method, (least squares methods require matrix inversion, which is at least an N2 order process), whereas with EM the computation time increases in proporation to MAX(NSPSUPP,NIND). Thus the larger the number of support points, the greater the speed advantage of the EM method. NPMAXITER=n- The default maximum iterations for non-parametric estimation of assessing support point probabilities is 1000, which is usually more than enough.
PARAFILE=filename-
As of NONMEM 7.4, nonparametric analysis can be parallelized.
PARAFILE=filenamespecifies a different parafile than was used for the previous step.PARAFILE=ONturns on parallelization for the Nonparametric Step.PARAFILE=OFFturns off parallelization for the Nonparametric Step. UNCONDITIONAL- The Nonparametric Step is always implemented.
OMITTED- The Nonparametric Step is not implemented.
REFERENCES: None
26 $OLKJDF
MEANING: Specifies LKJ decorrelation degrees of freedom for each OMEGA block
CONTEXT: NM-TRAN Control Record
USAGE:
$OLKJDF 0 (default) $OLKJDF [value … ] $OLKJDF [(value)[xn]] …
DISCUSSION:
OLKJDF is an option of the $ESTIMATION record. $OLKJDF is a separate record that allows the user to specify LKJ decorrelation degrees of freedom for each OMEGA block.
SAMPLE:
$OLKJDF 4.5 3.5 -2.0Where 4.5 degrees of freedom are specified for the first omega block, 3.5 for the second, and - 2.0 specifies 2 degrees of freedom for the third omega block, but a user-defined definition of the standard deviations of the diagonals for the third omega block. Use the OMEGA_STD_PRIORU.f90 file in the ..directory as a template to modify the OMEGA_STD_PRIORU to provide the desired probability density function. Set $SUBR OTHER=OMEGA_STD_PRIORU.f90 to use the user modified template (you may rename the file for organizational purposes).
RECORD ORDER:
Follows $OMEGA
REFERENCES: Guide Introduction_7
27 $OMEGA
MEANING: Supplies initial estimates for the NONMEM OMEGA Matrix
CONTEXT: NM-TRAN Control Record
USAGE:
$OMEGA [DIAGONAL(n) | BLOCK(n) | BLOCK(n) SAME(m) | BLOCK SAME(m)]-
[[value1] [value2] [value3] … [(value,value…) xn] [BLOCK(n)
VALUES(diag,odiag)] [label=value] … [BLOCK(n) [NAMES(label1,…,labeln)] [VALUES(diag,odiag)] [FIXED] [UNINT] [VARIANCE|STANDARD] [COVARIANCE|CORRELATON] [CHOLESKY] [SCALE(scalevalue)]
SAMPLE:
$OMEGA BLOCK(3) 6. .005 .3 .0002 .006 .4DISCUSSION:
Gives initial estimates and constraints for elements of one or several blocks of the OMEGA matrix, i.e., the matrix of variances and covariances of the eta variables in the statistical model. This record should appear only if the statistical model contains eta variables. Multiple $OMEGA records may be used to define multiple blocks of OMEGA. The order of the appearance of all blocks over all records corresponds to the order of the blocks in OMEGA.
If the initial estimates are omitted for any element(s) of OMEGA, then NONMEM will try to obtain the initial estimates.
See also the SPECIAL CASE below for the analysis type POPULATION WITH UNCONSTRAINED ETAS.
OPTIONS:
There are seven forms:
1. $OMEGA [DIAGONAL(n)] [ v11 v22 v33 ... vnn ]This gives the initial estimates of the diagonal elements of a diagonal block of OMEGA. E.g., $OMEGA .04 .12 Initial estimate of variance of eta(1) = .04 Initial estimate of variance of eta(2) = .12 Each initial estimate may optionally be coded with one of the forms: init options (init options) (options init)
With NONMEM 7.3 (value,value…)xn is permitted, so that repeated inputs of $OMEGA may be entered easily. Any initial value or group of initial values may be enclosed in parentheses and followed by “xn”, which means to replicate the values within parentheses n times (“repeated value”).
The following options apply only to a single initial estimate (i.e., a single 1x1 block) and must follow the initial estimate unless within parentheses.
Option FIXED indicates that the variance is to be constrained to be fixed to the given initial estimate. (When FIXED appears anywhere, then the block is described by NONMEM as consisting of separate blocks, each of dimension one.)
Option UNINT is used with NONMEM 7.5. UNINT is used during the Optimal Design Step to identify an eta as uninteresting. UNINT may be used anywhere that FIXED may be used.
Option VARIANCE indicates that the initial estimate is understood to be a variance of the eta. This is the default.
Option STANDARD indicates that the initial estimate is understood to be a standard deviation of the eta. May also be coded SD.
An initial estimate may be 0 only if the variance or standard deviation is fixed to this estimate.
2. $OMEGA BLOCK(n) [ v11 v21 v22 v31 v32 v33 ... vn1 vn2 ... vnn ]This gives the initial estimates of all the elements of a nondiagonal (“full”) block of OMEGA. E.g., $OMEGA BLOCK(2) .04 .002 .12 Initial estimate of variance of eta(1) = .04 Initial estimate of covariance of eta(2), eta(1) = .002 Initial estimate of variance of eta(2) = .12
Any initial value or group of initial values may be enclosed in parentheses and followed by “xn”, which means to replicate the values within parentheses n times (“repeated value”).
The following options apply to the entire block and may appear anywhere among the list of initial estimates:
FIXED indicates that the entire block is constrained to be fixed to its initial estimate.
Option UNINT is used with NONMEM 7.5. UNINT is used during the Optimal Design Step to identify an eta as uninteresting. UNINT may be used anywhere that FIXED may be used.
VARIANCE indicates that all initial estimates given for diagonal elements are understood to be initial estimates of variances of etas. This is the default.
STANDARD indicates that all initial estimates given for diagonal elements are understood to be initial estimates of standard deviations of etas. May also be coded SD.
COVARIANCE indicates that all initial estmates given for off-diagonal elements are understood to be initial estimates of covariances of etas. This is the default.
CORRELATON indicates that all initial estmates given for off-diagonal elements are understood to be initial estimates of correlations of etas.
CHOLESKY indicates that the block is specified in its Cholesky form.
Options VARIANCE or STANDARD may be combined with COVARIANCE or CORRELATON.
Note that NONMEM converts all initial estimates to variance and covariances. The values desplayed in the NONMEM report and in the raw and additional output files are always variances and covariances.
Examples:
The following describe the same block (within rounding errors): $OMEGA BLOCK(2) ; or $OMEGA VARIANCE COVARIANCE BLOCK(2) 0.64 -0.24 0.58 $OMEGA STANDARD BLOCK(2) 0.8 -0.24 0.762 $OMEGA STANDARD CORRELATION BLOCK(2) 0.8 -0.394 0.762 $OMEGA VARIANCE CORRELATION BLOCK(2) 0.64 -0.394 0.58 $OMEGA CHOLESKY BLOCK(2) 0.8 -0.3 0.7
The (entire) initial estimate of the block must be positive definite. The only exception is when the entire initial estimate of the block is 0, in which case it must be fixed to this estimate. Initial estimates of some of the elements of the block may be 0, while initial estimates of some other elements may be nonzero, but only in the case where the block is constrained to be of band symmetric form. That is, given the diagonal and a group of contiguous subdiagonals symmetrically ocurring across the diagonal, the elements off both the diagonal and the subdiagonals are constrained to be zero. To specify the initial estimates of such a block, the initial estimates of those elements that are to be constrained to 0 should be given as 0, while all other initial estimates should be given as nonzero. E.g., with these structures for $OMEGA BLOCK(3), the 0’s are preserved: x 0x 00x
x xx 0xx
With NONMEM 7.3 if the initial estimate of a block is not positive definite because of rounding errors, a value will be added to the diagonal elements to make it positive definite. A message in the NONMEM report file will indicate that this was done. E.g., DIAGONAL SHIFT OF 1.1000E-03 WAS IMPOSED TO ENSURE POSITIVE DEFINITENESS
3. $OMEGA BLOCK(n) SAME(m)This describes a block whose initial estimates, as well as final estimates, are constrained to be equal to those of the preceding block. Values may not be given. “(n)” may be omitted. With NONMEM 7.3 (m) is permitted. If (m) is present, then this record is equivalent to m identical records without (m). E.g., $OMEGA BLOCK(2) SAME(3) is equivalent to $OMEGA BLOCK(2) SAME $OMEGA BLOCK(2) SAME $OMEGA BLOCK(2) SAME
$OMEGABLOCK(n)VALUES(diag,odiag)
This supplies initial values for a block such that the initial estimates of the diagonal elements are all the same, specified by “diag”, and the initial estimates of the off-diagonal elements are all the same, specified by “odiag”. If present, VALUES must follow BLOCK. Other options (such as FIXED, CHOLESKY, VARIANCE,STANDARD,COVARIANCE,CORRELATON, UNINT) may follow VALUES or be placed between BLOCK and VALUES. E.g., $OMEGA BLOCK(6) VALUES(0.1,0.01) is the same as $OMEGA BLOCK(6) 0.1 0.01 0.1 (0.01)x2 0.1 (0.01)x3 0.1 (0.01)x4 0.1 (0.01)x5 0.1
For fixed block (such as for omega priors): $OMEGA BLOCK(6) FIX VALUES(0.15,0.0)
$OMEGAlabel=value (NM75)
The symbolic label substitution feature is new with NONMEM 7.5. This is a compact method of defining an ETA (an element of OMEGA) specifying its initial estimate, and specifying a label for the subscript for this element of OMEGA. The label may be used as a subscript for ETA in abbreviated code, and will also identify this element of OMEGA in the NONMEM output. If new $OMEGA records change the ordering, the abbreviated code does not have to be changed. For example, suppose the first element of OMEGA that is defined happens to be $OMEGA ECL=.4 The NONMEM report will describe the relationship, e.g., LABELS FOR ETAS ETA(1)=ETA(ECL) and ETA(CL) rather than ETA1 will appear in the NONMEM report. The abbreviated code can use this symbolic subscript instead of the numeric subscript. Then, these take effect on both ETA’s and MU_’s.
For example, suppose the following code is present for the first elements of THETA and ETA. Note that $OMEGA and $THETA records must be placed ahead of any records that use the symbolic label.
$THETA CL=(0.0,7.0)
$OMEGA ECL= 0.3
$PK
MU_ECL=THETA(CL)
CL=EXP(MU_ECL+ETA(ECL))This is equivalent to
$THETA (0.0,7.0)
$OMEGA .3
$PK
MU_1+THETA(1)
CL=EXP(MU_1+ETA(1))Another example defines symbolic labels for a block of OMEGA:
$OMEGA BLOCK(4)
ECL= 0.3
EV1= 0.01 0.35
EQ= 0.01 0.01 0.54
EV2= 0.01 0.01 0.01 0.67Or, for diagonals,
$OMEGA
ECL= 0.3
EV1= 0.35
EQ= 0.54
EV2= 0.67$OMEGABLOCK(n)NAMES(label1,…,labeln)VALUES(odiag,diag)
: {.nmtran} (NM75)
With NONMEM 7.5, Symbolic label substitution may be specified for an entire block using the NAMES option. This is a compact way of defining one or more etas with labels and, when combined with VALUES, with initial values. For example
$OMEGA BLOCK(4) NAMES(ECL,EV1,EQ,EV2) VALUES(0.03,0.01)This is equivalent to
$OMEGA BLOCK(4)
ECL= 0.03
EV1= 0.01 0.03
EQ= 0.01 0.01 0.03
EV2= 0.01 0.01 0.01 0.03If both are present, VALUES() must come after NAMES().
SPECIAL CASE (NONMEM 7.3)If all diagonal elements of OMEGA are “1.0E+06 FIXED”, then NONMEM describes the data as ANALYSIS TYPE: POPULATION WITH UNCONSTRAINED ETAS
Structurally NONMEM sees the analysis as population, but mathematically, the population density portion of the total likelihood is not included. This allows a population data set to be analyzed as if the data from each individual were single-subject data. Furthermore, some theta parameters could be shared across subjects (“pooled fit parameters”), whereas etas are free to fit each individual without any population constraint. Parallelization is possible.
7 $OMEGA SCALE(scalevalue) (NM760)
As of nm760, you may have your OMEGA or SIGMA values multiplied by a SCALE value. The SCALE value takes into affect on any OMEGA or SIGMA values that come after it in the record:
$OMEGA 0.5 0.7 SCALE(2.0) 0.8 0.9 SCALE(1.5) 0.1 0.2is equivalent to
$OMEGA 0.5 0.7 1.6 1.8 0.15 0.3Other examples:
$OMEGAP SCALE(0.7) BLOCK(4) FIX VALUES(0.5,0.01)is equivalent to:
$OMEGAP BLOCK(4) FIX VALUES(0.35,0.07)
$OMEGAP SCALE(0.7) BLOCK(4) FIX0.5 0.01 0.5 SCALE(2.5) 0.02 0.02 0.003
Is equivalent to
$OMEGAP SCALE(0.7) BLOCK(4) FIX0.5 0.01 0.5 0.05 0.05 0.0075
The SCALE is most useful when it is desired to scale an informed prior OMEGA from a previous analysis that differs from NONMEMs normal treatment. For example, you may wish to scale the omega prior by (df-p-1)/df, where df=degrees of freedom, and p=dimension of omega block. Rather than always re-calculate by hand, you can change the scale on the fly.
REFERENCES: Guide I, section C.3.4.6 , D.5.2 , D.5.3; Guide IV, section III.B.10 , V.C.6; Guide V, section 9.3
28 $OMEGAP, $OMEGAPD
MEANING: Gives prior information for omegas
CONTEXT: NM-TRAN Control Record
USAGE:
$OMEGAP value1 [value2] [value3] … $OMEGAPD value1 [value2] [value3] …
SAMPLE: ; Prior to OMEGA (NETPxNETP=4x4 of them) $OMEGAP BLOCK(4) 0.2 FIX 0.0 0.2 0.0 0.0 0.2 0.0 0.0 0.0 0.2 ; Set degrees of freedom of OMEGA Prior (one value per OMEGA block) $OMEGAPD (4 FIX)
DISCUSSION:
These are called the informative forms (i.e., informative record names) of the $OMEGA record, for use with the NWPRI utility.
$OMEGAP gives prior information for elements of the OMEGA matrix. $OMEGAPD gives degrees of freedom (also called the dispersion factor) for OMEGA priors.
The name of the record describes the kind of information it gives, rather than the structure of the information. E.g., in the example above, $OMEGAPD is implemented in FCON with a $THETA record because it is always a vector of values. These records may be located anywhere in the control stream. NM-TRAN inserts the corresponding records in the control stream in the correct order. When the informative forms are used, the options of $PRIOR NWPRI need not be specified. However, if options are listed in $PRIOR NWPRI, then these values are chosen over what is surmised from the informatively labeled theta/omega/sigma records. (See nwpri).
OPTIONS:
The option FIXED should be used. Other appropriate options are BLOCK and VALUES.
REFERENCES: Guide Introduction_7
29 $OMIT
MEANING: Defines data item types to be excluded from template matching when raw data averages are computed
CONTEXT: NM-TRAN Control Record
USAGE:
$OMIT item1 item2 item3 …
SAMPLE:
$OMIT TIMEDISCUSSION:
Optional. If a label of a data item type listed in the $INPUT record, or a synonym for such a data item type, appears in the $OMIT record, then data items of this type are excluded from template matching.
REFERENCES: None
30 $DESIGN (NM75)
MEANING: Requests that NONMEM perform clinical trial design evaluation or optimal design
CONTEXT: NM-TRAN Control Record
DISCUSSION:
The design process can help you in designing or evaluating a clinical trial. It may be desired to evaluate specified time points, or find the optimal time points, dose levels, and number of time points appropriate for a particular sub-design, etc. The design algorithms have been modeled after POPED by Hooker et al., and PFIM by Mentre et al. (see references [22-27]).
See INTRODUCTION TO NONMEM 7, Clinical Trial Design Evaluation and Optimization (NM75)
REFERENCES: INTRODUCTION TO NONMEM 7
31 $OVARF
MEANING: Specifies the weighting to the standard deviations of OMEGA
CONTEXT: NM-TRAN Control Record
USAGE:
$OVARF 0 (default) $OVARF [value … ] $OVARF [(value)[xn]] …
SAMPLE:
$OVARF 2.0 5.0Where 2.0 is specified for the first omega block, 5.0 for the second. If the corresponding $OLKJDF value is negative then this is argument STDSSP in user-defined OMEGA_STD_PRIORU.f90.
DISCUSSION:
The $OVARF is a separate record that allows the user to specify the weighting (inverse variance) to the standard deviations LKJ decorrelation degrees of freedom for each OMEGA block. Used with NUTS method.
$EST OVARF over-rides $OVARF.
REFERENCES: Guide Introduction_7
32 $PK
MEANING: Marks the beginning of abbreviated code for the PK Routine
CONTEXT: NM-TRAN Control Record
USAGE:
$PKabbreviated code
DISCUSSION:
The $PK record is used to model the values of basic and additional pharmacokinetic parameters. It is used with PREDPP.
Basic PK parameters are typically the rate constants (“micro-constants”) for use in kinetic formulas. $PK can compute instead parameters such as clearance and volume, and a translator (“TRANS”) subroutine can be used to convert these to rate constants. Additional PK parameters include compartment scale parameters, which PREDPP uses to convert compartment amounts to concentrations, and dose-related parameters such as modeled infusion rates. General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules for $PK follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
Basic PK parameters for the ADVAN and TRANS routines (Required,
except with the General Nonlinear Kinetics Models ADVAN6, ADVAN8,
ADVAN9, ADVAN13, ADVAN14, ADVAN15, ADVAN16, ADVAN17, ADVAN18). One
or more of the following, depending on which ADVAN and TRANS are
being used.
K CL V (ADVAN1)
KA K CL V (ADVAN2)
K K12 K21 CL V Q VSS V1 V2 ALPHA BETA AOB (ADVAN3)
KA K K23 K32 CL V Q VSS V1 V2 V3 ALPHA BETA AOB (ADVAN4)
Km0 Kmn (ADVAN5, ADVAN7)
P(n) (ADVAN6, ADVAN8, ADVAN9, ADVAN13, ADVAN14, ADVAN15, ADVAN16, ADVAN17, ADVAN18)
VM, KM (ADVAN10)
K K12 K21 K13 K31 CL Q2 Q3 V1 V2 V3 ALPHA BETA GAMMA
(ADVAN11)
KA K K23 K32 K24 K42 CL Q3 Q4 V2 V3 V4 ALPHA BETA GAMMA
(ADVAN12)P(n) are referred to as “explicit” basic PK parameters. Any variable defined in $PK may be used on the right-hand side in a $DES or $AES block; these are “implicit” basic PK parameters.
Additional PK parameters (Optional) One or more of the following, depending on the compartments defined for the model. The digit following the letter is the compartment number. Scale parameters Sn, e.g.: S1 S2 S3 S4 SC S0. Bio-availability fractions Fn, e.g.: F1 F2 F3. Output fractions Fn, e.g.: F2 F3 F4 F0 FO. Infusion rates Rn, e.g.: R1 R2 R3. Infusion durations Dn, e.g.: D1 D2 D3. Absorption lags ALAGn, e.g.: ALAG1 ALAG2 ALAG3. Time scale: TSCALE (may be written XSCALE). Model event times MTIME(i), e.g.: MTIME(1) MTIME(2). (The subscript i is not a compartment number.) (See MTIME)
Initial compartment amounts (Optional), e.g..: A_0(1) A_0(2). (See Compartment Initialization Block)
Initial steady state flag I_SS (Optional). (See advan68, advan9, $model) (See Initial Steady State: I_SS,ISSMOD).
PK-defined (i.e., PRED-defined) items
Right-hand quantities in assignment statement and in conditions:
Data item labels specified on the $INPUT statement.
THETA(n).ETA(n) (Used if the data are population.)
PK-defined items that appeared earlier as left-hand quantities.
NEWINDSame as the NEWIND argument passed by NONMEM to PREDPP. NEWIND=0: First record of the data set. THETA value may differ from value at last call with this record. NEWIND=1: First record of the data set, THETA value does not differ from value at last call with this record, and PRED is nonrecursive (see I_REC), or, First record of a subsequent individual record. NEWIND=2: Subsequent data record of an individual record.
ICALLSame as the ICALL argument passed by NONMEM to PREDPP. ICALL=1: Initialization. ICALL=2: Normal call. ICALL=3: Finalization. ICALL=4: Simulation. ICALL=5: Expectation. ICALL=6: Raw data averages. Special rules apply to blocks of abbreviated code that are executed when ICALL is not 2. (See Initialization-Finalization block, Simulation block). (See Expectation block, Data_Average block).
Global Variables in Modules
Certain variables in FORTRAN modules can be used. (See Variables_in_modules) The following are of particular interest.
DOSTIM DOSREC(n)If PK is not being called at an additional or lagged dose time, then DOSTIM = 0 and all elements of DOSREC are 0.
If PK is called at an additional or lagged dose time t, then DOSTIM=t (See Guide VI, Chapter III) DOSREC contains a copy of the dose event record which initiated the additional or lagged dose (actually, only of the final row: EVTREC(NVNT,*)). Data items may be referred to by position or by label, e.g., DOSREC(1) or DOSREC(ID). In DOSREC, TIME and all user (concomitant) data items have values from the next event record. All other NONMEM/PREDPP reserved data items have values from the initiating dose event record. (The $BIND record may be used to override this.)
A(n) TSTATEA(n) are the latest computed compartment amounts, and TSTATE is the time at which they were computed. That is, A(n) are the amounts at the previous event time, or if at a later time, but before the time for which PK is being called, a lagged or additional dose was given, or a regular infusion was terminated, or a modeled event occurred, then A(n) are the amounts at the latest such time. If there are population etas, and A(n) are used in the $PK abbreviated code, then any $OMEGA records referring to etas explicitly used in this code should precede the $PK record, or if an $MSFI record is used, it should precede the $PK record and include the option NPOP=m. Note: If there is no verbatim code and no explicit use of a subscripted variable A in the $PK record, then the symbol A can be used as a data item label or as a name of a PK-defined item.
A_0FLGA_0FLG signals a record with which it is possible to initialize a compartment amount. (See Compartment Initialization Block)
Forbidden Variable Names:
IDEF IREV EVTREC NVNT INDXS IRGG GG NETAS DADT(n) E(n) EPS(n)
PSEUDO ASSIGNMENT STATEMENTS
COMRES=-1
CALLFL=-2: Call with every event record and at additional and laggeddose times. CALLFL=-1: Call with every event record. CALLFL=0: Call with first event record and new TIME values. CALLFL=1: Call once per individual record.
Of the last four, CALLFL=-2 is the default when DOSREC, DOSTIM, or MTIME are used explicitly in the abbreviated code. Otherwise, CALLFL=-1 is the default.
The pseudo-assignments statements may be enclosed in parentheses. If two of them are present in the same set of parentheses, separate them with a semicolon. A calling protocol phrase may be used within parentheses instead of a pseudo-assignment statement, and either upper or lower case may be used. E.g.,
$PK (ONCE PER IR) ; same as CALLFL=1 $PK (NEW TIME) ; same as CALLFL=0 $PK (EVERY EVENT) ; same as CALLFL=-1 $PK (NONEVENT) ; same as CALLFL=-2
RECORD ORDER:-
Follows
$SUBROUTINESand$INPUTFollows$MODEL(with General Nonlinear Kinetics ModelsADVAN6,ADVAN8,ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADVAN16,ADVAN17,ADVAN18). Precedes$ERROR(if present)
REFERENCES: Guide IV, section V.C.5; Guide V, section 7; Guide VI, section III
33 $PRED
MEANING: Marks the beginning of abbreviated code for the PRED routine
CONTEXT: NM-TRAN Control Record
USAGE:
$PREDabbreviated code
DISCUSSION:
The $PRED record is used to model values for the DV data items. It is NOT used with PREDPP (but (See $ERROR). General rules for abbreviated code are documented elsewhere (See abbreviated code). Specific rules for $PRED follow.
ASSIGNMENT AND CONDITIONAL STATEMENTSLeft-hand quantities in assignment statements:
Y (Required. The modeled value for the dependent variable under the statistical model.)
PRED-defined items.
Right-hand quantities in assignment statement and in conditions:
Data item labels specified on the $INPUT statement.
THETA(n).ETA(n) (Used if the data are population or single-subject data, and in the latter case can be coded ERR(n).)
EPS(n) (Used if the data are population, and can be coded ERR(n).)
PRED-defined items that appeared earlier as left-hand quantities. This includes Y.
NEWINDSame as the NEWIND argument passed by NONMEM to PREDPP. NEWIND=0: First record of the data set. THETA value may differ from value at last call with this record. NEWIND=1: First record of the data set, THETA value does not differ from value at last call with this record, and PRED is nonrecursive (see I_REC), or, First record of a subsequent individual record. NEWIND=2: Subsequent data record of an individual record.
NEWL2
NEWL2=1: First record of an L2 record.
NEWL2=2: Otherwise.
ICALL
ICALL=0: Run initialization.
ICALL=1: Problem initialization.
ICALL=2: Normal call.
ICALL=3: Problem finalization.
ICALL=4: Simulation.
ICALL=5: Expectation.
ICALL=6: Data Average.Special rules apply to blocks of abbreviated code that are executed when ICALL is not 2. (See initialization, finalization, simulation). (See expectation, data average).
Variables in Fortran modules Certain variables in FORTRAN modules can be used. (See Variables_in_modules)
Forbidden Variable Names:
DATREC INDXS G H DADT(n) A(n) E(n) P(n)PSEUDO ASSIGNMENT STATEMENTS
COMRES=-1RECORD ORDER:
Follows $SUBROUTINES and $INPUT
REFERENCES: Guide I, section C.2; Guide IV, section III.B.8 , IV; Guide V, section 12.3
34 $PRIOR
MEANING: Provides instructions for the PRIOR subroutine
CONTEXT: NM-TRAN Control Record
USAGE:
$PRIORsubroutine [(conditional” “clause1 ), (conditional” “clause2 ) … ]-
[
DISPLAY[=ALL|CNT]] [ICMAX=n] [argument1 , argument2 …]
SAMPLE:
$PRIOR TNPRI (PROBLEM 2) PLEV=.9999 ISS=0 IVAR=1DISCUSSION:
Optional. Specifies the use of the PRIOR feature of NONMEM. Note that $PRIOR is a control record, not a block of abbreviated code. Therefore, only those options that are listed here may be used. E.g., verbatim code may not be used. Options and arguments may be in any order, and may be on more than one line.
OPTIONS:
subroutine
Required. Either TNPRI or NWPRI. The following options and arguments apply to calls to this subroutine. Another subroutine option (or another $PRIOR record) may follow, with a new set of options and arguments. Use only NWPRI for the new $ESTIMATION methods of NONMEM 7.
conditional clause
Optional. One or more conditions, within parentheses. The conditions are “AND”ed together, i.e., the subroutine is called when all conditions in the conditional clause are true. If there is more than one conditional clause, the clauses are “OR”ed together, i.e., the subroutine is called if all the conditions in any one conditional clause are true. See the Examples, below. Conditions may be one or more of:
ESTIMATION or SIMULATION Specifies the NONMEM task for which the subroutine is to be called. If omitted, PRIOR is called for all tasks (i.e., for all values of ICALL). ESTIMATION and SIMULATION may not both be specified in the same conditional clause. ESTIMATION may be spelled ESTIMATE or ESTM; SIMULATION may be spelled SIMULATE or SIML.
May also be specified as ICALL=n, ICALL.EQ.n, or ICALLn, where n is 2 (ESTIMATION) or 4 (SIMULATION).
PROBLEM=nSpecifies the problem for which the subroutine is to be called. May also be specified as PROBLEM=n or PROBLEM.EQ.n or PROBLEMn. PROBLEM may also be coded as IPROB. Instead of =, .EQ. may be used. Other permitted tests are .NE., .LT., .LE., .GT., and .GE.
DISPLAY[=ALL|CNT]Optional. The PRIOR subroutine will contain code to print items of interest in the NONMEM report. This is to assist the user in checking that the $PRIOR record is working correctly.
DISPLAY=ALL is the default when only DISPLAY is present. Lines suchas the following are printed with every call to PRIOR:
PRIOR ICALL,IPROB,IREP,CNT: 2 2 0 -41.898951681785.With DISPLAY=CNT, lines such as the following are printed only when PRIOR is called for simulation or estimation.
PRIOR CNT: -41.898951681785
ICMAX=nOptional. The PRIOR subroutine will set the given value in ICMAX prior to calling the subroutine. (See PRIOR Simulation: ICMAX).
Subroutine arguments
Optional. The arguments are described in the help entries for NWPRI and TNPRI. They must be coded excatly as shown, i.e., no abbreviations. Any argument that is omitted defaults to 0.
ITYP, NSAM, ISS, PLEV, CNTArguments for both NWPRI and TNPRI
NTHETA, NETA, NEPS, NTHP, NETP, NEPP, NPEXPArguments unique to NWPRI
IFND, MODE, IVARArguments unique to for TNPRI
EXAMPLE:
$PRIOR TNPRI (ESTIMATION, PROB .GE.3 ) IFND=1TNPRI is called with the Estimation step of problems 3 and higher. IFND is set to 1 with these calls; all other arguments are 0.
$PRIOR TNPRI IFND=1
(EST, PROB 3) (EST,PROB 4) (EST,PROB 5)Same as the preceding example, if the run consists of exactly five problems. TNPRI is called with the Estimation step of problems 3, 4 and 5. IFND is set to 1 with these calls; all other arguments are 0.
$PRIOR TNPRI (EST, PROB 3) IFND=1-
Same as the preceding example.
TNPRI (EST, PROB 4) IFND=1 TNPRI (EST, PROB 5) IFND=1TNPRIis called with the Estimation step of problem 3.IFND=1with this call. Similarly with problems 4 and 5. Note thatIFNDmust be specified independently each time to be 1. With re-specification of the subroutine, all arguments are reset to 0. This permits identical or different arguments with each usage of the subroutine. NM-TRAN will warn if no argument is specified in a subsequent specification ofTNPRIorNWPRI, in case the arguments have been omitted by error. One or more arguments may be set explicitly to 0 to prevent the warning. When the subroutine is specified more than once, then all specifications must be conditional, i.e., conditional clauses are requrired. Within the same run, one may useTNPRIwith some tasks or problems, andNWPRIwith other tasks or problems. There may be at most 10$PRIORrecords per problem.
(See TNPRI, TNPRI, prior). (See tnpri example, nwpri example).
REFERENCES: Guide Introduction_VI
35 $PROBLEM
MEANING: Identifies the start of a NONMEM Problem Specification
CONTEXT: NM-TRAN Control Record
USAGE:
$PROBLEM [text]
SAMPLE:
$PROB THEOPHYLLINE POPULATION DATADISCUSSION:
The $PROBLEM record identifies the start of a NONMEM problem specification. The text becomes a heading for the NONMEM printout. This record is required. If the problem is part of a superproblem, $SUPER must precede the $PROBLEM record. If $SIZES is present, it must precede the first $SUPER or $PROBLEM record. Otherwise, the first NM-TRAN control record must be a $PROBLEM record. A $PROBLEM record other than the first one marks the beginning of another problem specification.
The text must be contained on a single record, and only the first 72 characters of text are used in the heading. Spaces and semicolons in text are regarded as part of the text. The text is optional.
REFERENCES: Guide IV, section III.B.1
36 $RCOV, $RCOVI
MEANING: Inputting Variance-Covariance information from another problem
CONTEXT: NM-TRAN Control Record
USAGE:
$RCOV
FILE=filename [FORMAT|DELIM=s1] [TBLN=n]
$RCOVI
FILE=filename [FORMAT|DELIM=s1] [TBLN=n]SAMPLE:
$RCOV FILE=sirsample.cov TBLN=1 DELIM=,
The $RCOV record can be used to load the variance-covariance matrix of estimates results from a previous problem, and use it for subsequent use in assessing total standard errors of table items without having to re-calculate the variance with a $COV step.
The record $RCOVI may be used to load the the variance-covariance information from the inverse-covariance file:
$RCOVI FILE=sirsample.coi TBLN=1 DELIM=,
The FILE=filename option is required.
If FORMAT or DELIM is used, it should be the same as was specified on the $ESTIMATION record that created the file to be used. The default is s1PE12.5.
TBLN is the table number in the file. If TBLN is not specified, it defaults to 1.
NONMEM describes the use of these records with a message in the report file and to the terminal such as the following:
LOADED VARIANCE/COVARIANCE DATA FROM FILE c5.covIf NONMEM is unable to read the file, the message is COULD NOT FIND APPROPRIATE VARIANCE/COVARIANCE DATA IN FILE c5.cov
$RCOV and $RCOVI can be used with the $CHAIN record. For examples and discussion:
See INTRODUCTION TO NONMEM 7, $RCOV and $RCOVI Record For Inputting Variance-Covariance information from another problem.
REFERENCES: Guide Introduction_7
37 $SCATTERPLOT
MEANING: Requests that NONMEM generate one or more scatterplots
CONTEXT: NM-TRAN Control Record
USAGE:
$SCATTERPLOT list1 VS list2 [BY list3]
[FROM n1] [TO n2] [UNIT]
[ORD0|NOORD0] [ABS0|NOABS0] [FIRSTONLY] [OBSONLY]
[NOSUB=[0|1]]
[UNCONDITIONAL|CONDITIONAL] [OMITTED]SAMPLE:
$SCATTERPLOT (RES WRES) VS TIME BY IDDISCUSSION:
Requests that families of NONMEM scatterplots be produced. Up to 20 families of scatterplots may be included in the problem. May also be coded $SCATTERS or $SCATTERGRAMS.
OPTIONS:
- list1
-
A list of item labels to be plotted on the ordinate axis (the long axis on the printed output). The list may be enclosed in parentheses. It may include:
Data item labels.
Special items
PRED,RES, andWRES.
The user may request the following additional diagnostic items by including their name in the list.
NPRED, NRES, NWRESCalculated assuming non-conditional estimation and no etaepsilon interaction. NPRED and NRES are same as PRED and RES. NWRES is same as WRES when INTERACTION is not set in $EST.
PREDI, RESI, WRESICalculated assuming non-conditional estimation with etaepsilon interaction. Always same as PRED, RES, and WRES.
CPRED, CRES, CWRESCalculated assuming conditional estimation and no etaepsilon interaction.
CPREDI, CRESI, CWRESICalculated assuming conditional estimation with eta-epsilon interaction.
CIPRED, CIRES,CIWRESConditional individual values
CIPREDI, CIRESI,CIWRESIConditional individual values with eta-epsilon interaction.
EPRED, ERES, EWRESMonte-Carlo generated diagnostics and are not linearized approximations like the other diagnostic types. EWRES is the Monte-Carlo version of CWRESI.
ECWRESMonte-Carlo version of CWRES.
NPDEMonte-Carlo generated normalized probability distribution error.
NPD The correlated (or non-decorrelated) NPDE value.
OBJIObjective function values for each individual (same as given in the root.phi file). The sum of the individual objective function values is equal to the total objective function.
Labels ETA(1), ETA(2), … ,ETA(10), … , ETA(70), etc., or alternatively, labels ETA1, ETA2, … ,ET10, … , ET70, etc., corresponding to eta(1), eta(2), etc. The labels in the output will be ETA1, ETA2, … , ET10, … ET70, etc.
With NONMEM 7.3, a range of etas may be requested: $SCAT ETAS(1:2) VS ETA3 is equivalent to $SCAT ETA1 ETA2 VS ETA3 However, unlike $TABLE, $SCAT will ignore implied endings, such as $SCAT ETAS(1:LAST) VS ETA3 And just interpret it as $SCAT ETA1 VS ETA3 With NONMEM 7.4, more flexible syntax is available, using TO and BY. (See $table).
With NONMEM 7.4, a symbolic label specified in $ABBR REPLACE may be listed in $SCAT. For example: $ABBR REPLACE ETA(CL)=ETA(1) … $SCAT ETA(CL) VS ETA3
Reserved positions of MODULE NMPRD4 (see $ABBREV). COM(k) or :k denotes the kth reserved position. (There must be exactly 4 digits after “:”. Use leading 0’s as necessary.) E.g., COM(3) or :003. Labels of the form :k will be used in the output.
Labels of PRED-defined items in MODULE NMPRD4 if abbreviated code is present (up to PDT distinct such labels in any one problem, for all tables and scatterplots. PDT is a constant in resource/SIZES.f90; default value is 500.) These may include labels of the NM-TRAN-
- defined items:
- 0nnn e.g., 0010 stands for A00nnn 1nnn e.g., 1010 stands for A01nnn 2nnn e.g., 2010 stands for C00nnn 3nnn e.g., 3010 stands for D00nnn 4nnn e.g., 4010 stands for E00nnn 5nnn e.g., 5010 stands for F00nnn 6nnn e.g., 6010 stands for P00nnn
These may also include:
labels VECTRA(1), VECTRA(2), ... ,VECTRA(9), or alternatively,
labels VA_1, VA_2, ... ,VA_9, corresponding to VECTRA(1), VECTRA(2),
..., VECTRA(9).
The labels in the output will be VA_1, VA_2, ... , VA_9.
Similarly, for VECTRB and VECTRC.
Synonyms may be defined on either the $TABLE or $SCATTER record for special items PRED, RES, WRES; for PRED-defined items; for NM-TRAN-defined items; and for reserved positions of MODULE NMPRD4.
E.g., assume that IWRES is a PRED-defined label, that at least 3 positions of NMPRD4 are reserved, and that NM-TRAN has generated A00032 as the label for a derivative in the generated FSUBS routine. Either $TABLE or $SCATTER records may include:
WRES=RES1,IWRES=RES2,COM(3)=ABC,0032=DK.For a discussion of the values of ETAs and PRED-defined items (e.g., are they based on initial or final values of theta? Simulated or zero or conditional values of eta?), see values.
Elements of G and H E.g., $SCATTER G11 BY G21 The format is Gk1 or Hk1, where k is an integer value, e.g. 1-9 or 01-99 or 001-999. Gk1 requests the value of G(k,1), and Hk1 requests the value of H(k,1), where G and H are arguments of subroutine PRED. G(k,1) is the partial of F (the prediction) with respect to ETA(1), and H(k,1) is the partial of F with respect to EPS(1). (HH may be coded instead of H, but it is treated as if it were H.) A variable of the form Gk1 or Hk1 is not a reserved variable. If it is previously defined (i.e., if it is listed in $INPUT, or used on the left in abbreviated code, or used as a synonym e.g., $TABLE G11=COM(1)), then that definition of the variable is used, and there is no change from previous versions of NM-TRAN. Only if there is no other previous definition of the variable will it be understood to be an element of G or H. What NM-TRAN actually displays is the variable in MODULE NMPRD4 that was used to compute the derivative of interest (a variable in the series A00nnn, C00nn, or D00nnn) with the appropriate synonym such as G11. If there is no such variable, this is an error. NMTRAN will not display variables that are not computed , e.g., G41 when there are only 3 etas in the problem, or when there are 4 etas but ETA(4) does not contribute to the value of Y. [There is a workaround if the zero is wanted as a place holder in the table. In abbreviated code ($ERROR or $PRED or $PK) G41=0 .
(See Displayed PRED-Defined Items).
- list2
- Like list1, but includes the labels of items to be plotted on the abscissa axis (the short axis on the printed output). The list may be enclosed in parentheses. The word “VS” is optional; it may be omitted if the lists are enclosed in parenthesis, or if each list consists of exactly one item label. VS may also be coded *. Each pair of labels, one from list1 and one from list2, defines a family of scatterplots.
- list3
- A list of one or two item labels or synonyms. Each pair of labels from list1 and list2 produces a family of scatterplots, one scatterplot for each unique value (or combination of values) of the data item(s) in list3. If the BY option is omitted, each pair of labels from list1 and list2 produces a family comprised of a single scatterplot.
UNIT A line of unit slope is superimposed on the scatterplots.
ORD0A line through the zero value on the ordinate axis is superim--
posed on the scatterplots. May also be coded
ORDZERO. NOORD0-
Prevents a zero line from being superimposed on the ordinate axis of the scatterplots. May also be coded
NOORDZERO. If neitherORD0norNOORD0is present, NONMEM automatically superimposes a zero line on the ordinate axis if it is appropriate for the type of data item. ABS0A zero line is superimposed on the abscissa axis of the scatter--
plots. May also be coded
ABSZERO, AB0, orABZERO. NOABS0-
Prevents a zero line from being superimposed on the abscissa axis of the scatterplots. May also be coded
NOABSZERO,NOABS0,NOABZERO,NOAB0. If neither ofABS0andNOABS0is present, NONMEM automatically superimposes a zero line on the abscissa axis if it is appropriate for the type of data item. FIRSTONLY-
Only the first data record from each individual record may contribute a point to the scatterplot. May also be coded
FIRSTRECORDONLYorFIRSTRECONLY. OBSONLY-
The scatterplot will only use data records with
MDV=0. This option applies independently ofFIRSTONLY. It is not necessary when eitherDV,RES, orWRESis plotted. - FROM n1
- n1 is the number of the first data record which may “contribute” to the scatterplot. Default: n1 is 1.
- TO n2
- n2 is the number of the last data record which may “contribute” to the scatterplot. Default: There is no upper limit. All appropriate records will contribute. To restore the NONMEM VI behavior, use TO n1+899.
With FIRSTONLY, n1 and n2 refer to (first records of) individual records. The remaining options apply to all $SCATTERPLOT records.
NOSUB=[0|1]-
With
NOSUB=0, label substitution will be performed scatterpots. (See$ABBREVIATED). This is the default. WithNOSUB=1, label substitution will not be performed. CONDITIONAL- The Scatterplot Step is implemented only when the Estimation Step terminates successfully or is not implemented. This is the default.
UNCONDITIONAL- The Scatterplot Step is always implemented. This is the default.
OMITTED- The Scatterplot Step is not implemented.
When DV, RES, or WRES is plotted, records having MDV=1 are not plotted.
The following symbols are used in scatterplots:
- 1 point Overstriking: 2-9 2-9 points A-Z 10-35 points (A=10, B=11, … , Z=35) $ more than 35 points
REFERENCES: Guide IV, section III.B.17; Guide V, section 9.5.2 , 10.7.2
38 $SIGMA
MEANING: Supplies initial estimates for the NONMEM SIGMA Matrix
CONTEXT: NM-TRAN Control Record
USAGE:
$SIGMA [DIAGONAL(n) | BLOCK(n) | BLOCK(n) SAME(m) | BLOCK SAME(m)]-
[[value1] [value2] [value3] … [(value,value…) xn] [BLOCK(n)
VALUES(diag,odiag)] [label=value] … [BLOCK(n) [NAMES(label1,…,labeln)] [VALUES(diag,odiag)] [FIXED] [UNINT] [VARIANCE|STANDARD] [COVARIANCE|CORRELATON] [CHOLESKY] [SCALE(scalevalue)]
SAMPLE:
$SIGMA BLOCK(3) 6. .005 .3 .0002 .006 .4DISCUSSION:
Gives initial estimates and constraints for elements of one or several blocks of the SIGMA matrix, i.e., the matrix of variances and covariances of the eps variables in the statistical model. This record should appear only if the statistical model contains eps variables. Multiple $SIGMA records may be used to define multiple blocks of SIGMA. The order of the appearance of all blocks over all records corresponds to the order of the blocks in SIGMA.
If the initial estimates are omitted for any element(s) of SIGMA, then NONMEM will try to obtain the initial estimates.
OPTIONS:
There are seven forms:
1. $SIGMA [DIAGONAL(n)] [ v11 v22 v33 ... vnn ]This gives the initial estimates of the diagonal elements of a diagonal block of SIGMA. E.g., $SIGMA .04 .12 Initial estimate of variance of eps(1) = .04 Initial estimate of variance of eps(2) = .12 Each initial estimate may optionally be coded with one of the forms: init options (init options) (options init)
With NONMEM 7.3 (value,value…)xn is permitted, so that repeated inputs of $SIGMA may be entered easily. Any initial value or group of initial values may be enclosed in parentheses and followed by “xn”, which means to replicate the values within parentheses n times (“repeated value”).
The following options apply only to a single initial estimate (i.e., a single 1x1 block) and must follow the initial estimate unless within parentheses.
Option FIXED indicates that the variance is to be constrained to be fixed to the given initial estimate. (When FIXED appears anywhere, then the block is described by NONMEM as consisting of separate blocks, each of dimension one.)
Option UNINT is used with NONMEM 7.5. UNINT is used during the Optimal Design Step to identify an eps as uninteresting. UNINT may be used anywhere that FIXED may be used.
Option VARIANCE indicates that the initial estimate is understood to be a variance of the eps. This is the default.
Option STANDARD indicates that the initial estimate is understood to be a standard deviation of the eps. May also be coded SD.
An initial estimate may be 0 only if the variance or standard deviation is fixed to this estimate.
2. $SIGMA BLOCK(n) [ v11 v21 v22 v31 v32 v33 ... vn1 vn2 ... vnn ]This gives the initial estimates of all the elements of a nondiagonal (“full”) block of SIGMA. E.g., $SIGMA BLOCK(2) .04 .002 .12 Initial estimate of variance of eps(1) = .04 Initial estimate of covariance of eps(2), eps(1) = .002 Initial estimate of variance of eps(2) = .12
Any initial value or group of initial values may be enclosed in parentheses and followed by “xn”, which means to replicate the values within parentheses n times (“repeated value”).
The following options apply to the entire block and may appear anywhere among the list of initial estimates:
FIXED indicates that the entire block is constrained to be fixed to its initial estimate.
Option UNINT is used with NONMEM 7.5. UNINT is used during the Optimal Design Step to identify an eps as uninteresting. UNINT may be used anywhere that FIXED may be used.
VARIANCE indicates that all initial estimates given for diagonal elements are understood to be initial estimates of variances of eps. This is the default.
STANDARD indicates that all initial estimates given for diagonal elements are understood to be initial estimates of standard deviations of epsilons. May also be coded SD.
COVARIANCE indicates that all initial estmates given for off-diagonal elements are understood to be initial estimates of covariances of epsilons. This is the default.
CORRELATON indicates that all initial estmates given for off-diagonal elements are understood to be initial estimates of correlations of epsilons.
CHOLESKY indicates that the block is specified in its Cholesky form.
Options VARIANCE or STANDARD may be combined with COVARIANCE or CORRELATON.
Note that NONMEM converts all initial estimates to variance and covariances. The values desplayed in the NONMEM report and in the raw and additional output files are always variances and covariances.
Examples:
The following describe the same block (within rounding errors): $SIGMA BLOCK(2) ; or $SIGMA VARIANCE COVARIANCE BLOCK(2) 0.64 -0.24 0.58 $SIGMA STANDARD BLOCK(2) 0.8 -0.24 0.762 $SIGMA STANDARD CORRELATION BLOCK(2) 0.8 -0.394 0.762 $SIGMA VARIANCE CORRELATION BLOCK(2) 0.64 -0.394 0.58 $SIGMA CHOLESKY BLOCK(2) 0.8 -0.3 0.7
The (entire) initial estimate of the block must be positive definite. The only exception is when the entire initial estimate of the block is 0, in which case it must be fixed to this estimate. Initial estimates of some of the elements of the block may be 0, while initial estimates of some other elements may be nonzero, but only in the case where the block is constrained to be of band symmetric form. That is, given the diagonal and a group of contiguous subdiagonals symmetrically ocurring across the diagonal, the elements off both the diagonal and the subdiagonals are constrained to be zero. To specify the initial estimates of such a block, the initial estimates of those elements that are to be constrained to 0 should be given as 0, while all other initial estimates should be given as nonzero. E.g., with these structures for $SIGMA BLOCK(3), the 0’s are preserved: x 0x 00x
x xx 0xx
With NONMEM 7.3 if the initial estimate of a block is not positive definite because of rounding errors, a value will be added to the diagonal elements to make it positive definite. A message in the NONMEM report file will indicate that this was done. E.g., DIAGONAL SHIFT OF 1.1000E-03 WAS IMPOSED TO ENSURE POSITIVE DEFINITENESS
3. $SIGMA BLOCK(n) SAME(m)This describes a block whose initial estimates, as well as final estimates, are constrained to be equal to those of the preceding block. Values may not be given. “(n)” may be omitted. With NONMEM 7.3 (m) is permitted. If (m) is present, then this record is equivalent to m identical records without (m). E.g., $SIGMA BLOCK(2) SAME(3) is equivalent to $SIGMA BLOCK(2) SAME $SIGMA BLOCK(2) SAME $SIGMA BLOCK(2) SAME
$SIGMABLOCK(n)VALUES(diag,odiag)
This supplies initial values for a block such that the initial estimates of the diagonal elements are all the same, specified by “diag”, and the initial estimates of the off-diagonal elements are all the same, specified by “odiag”. If present, VALUES must follow BLOCK. Other options (such as FIXED, CHOLESKY, VARIANCE,STANDARD,COVARIANCE,CORRELATON, UNINT) may follow VALUES or be placed between BLOCK and VALUES. E.g., $SIGMA BLOCK(6) VALUES(0.1,0.01) is the same as $SIGMA BLOCK(6) 0.1 0.01 0.1 (0.01)x2 0.1 (0.01)x3 0.1 (0.01)x4 0.1 (0.01)x5 0.1
For fixed block (such as for sigma priors): $SIGMA BLOCK(6) FIX VALUES(0.15,0.0)
$SIGMAlabel=value (NM75)
The symbolic label substitution feature is new with NONMEM 7.5. This is a compact method of defining an EPS (an element of SIGMA) specifying its initial estimate, and specifying a label for the subscript for this element of SIGMA. The label may be used as a subscript for EPS in abbreviated code, and will also identify this element of SIGMA in the NONMEM output. If new $SIGMA records change the ordering, the abbreviated code does not have to be changed. For example, suppose the first element of SIGMA that is defined happens to be $SIGMA RSW=.06 The NONMEM report will describe the relationship, e.g., LABELS FOR EPS EPS(1)=EPS(RSW) and EPS(RSW) rather than EPS1 will appear in the NONMEM report. The abbreviated code can use this symbolic subscript instead of the numeric subscript.
As with $OMEGA, $SIGMA and $THETA records (if elements of THETA are used) must be placed ahead of any records that use the symbolic label.
Another example defines symbolic labels for a block of SIGMA:
$SIGMA BLOCK(2)
RSW= 0.3
EX= 0.01 0.35Or, for diagonals,
$SIGMA
RSW= 0.3
EX= 0.35$SIGMABLOCK(n)NAMES(label1,…,labeln)VALUES(odiag,diag)
: {.nmtran} (NM75)
With NONMEM 7.5, Symbolic label substitution may be specified for an entire block using the NAMES option. This is a compact way of defining one or more epsilons with labels and, when combined with VALUES, with initial values. For example
$SIGMA BLOCK(2) NAMES(RSW,EX) VALUES(0.03,0.01)This is equivalent to
$SIGMA BLOCK(2)
RSW= 0.03
EX= 0.01 0.03If both are present, VALUES() must come after NAMES().
7 $SIGMA SCALE(scalevalue) (NM760)
As of nm760, you may have your OMEGA or SIGMA values multiplied by a SCALE value. The SCALE value takes into affect on any OMEGA or SIGMA values that come after it in the record:
$SIGMA 0.5 0.7 SCALE(2.0) 0.8 0.9 SCALE(1.5) 0.1 0.2is equivalent to
$SIGMA 0.5 0.7 1.6 1.8 0.15 0.3Other examples:
$SIGMAP SCALE(0.7) BLOCK(4) FIX VALUES(0.5,0.01)is equivalent to:
$SIGMAP BLOCK(4) FIX VALUES(0.35,0.07)
$SIGMAP SCALE(0.7) BLOCK(4) FIX0.5 0.01 0.5 SCALE(2.5) 0.02 0.02 0.003
Is equivalent to
$SIGMAP SCALE(0.7) BLOCK(4) FIX0.5 0.01 0.5 0.05 0.05 0.0075
The SCALE is most useful when it is desired to scale an informed prior SIGMA from a previous analysis that differs from NONMEMs normal treatment. For example, you may wish to scale the sigma prior by (df-p-1)/df, where df=degrees of freedom, and p=dimension of sigma block. Rather than always re-calculate by hand, you can change the scale on the fly.
REFERENCES: Guide I, section C.3.4.6 , D.5.2 , D.5.3; Guide IV, section III.B.10 , V.C.6; Guide V, section 9.3
39 $SIGMAP, $SIGMAPD
MEANING: Gives prior information for sigmas
CONTEXT: NM-TRAN Control Record
USAGE:
$SIGMAP value1 [value2] [value3] … $SIGMAPD value1 [value2] [value3] …
SAMPLE: ; Prior to SIGMA (NEPPxNEPP=1x1 of them) $SIGMAP 0.05 FIX ; Set degrees of freedom of SIGMA Prior (one value per SIGMA block) $SIGMAPD (1 FIX)
DISCUSSION:
These are called the informative forms of the $SIGMA record, for use with the NWPRI utility.
$SIGMAP gives prior information for elements of the SIGMA matrix. $SIGMAPD gives degrees of freedom (also called the dispersion factor) for SIGMA priors.
The name of the record describes the kind of information it gives, rather than the structure of the information. E.g., in the example above, $SIGMAPD is implemented in FCON with a $THETA record because it is always a vector of values. These records may be located anywhere in the control stream. NM-TRAN inserts the corresponding records in the control stream in the correct order. When the informative forms are used, the options of $PRIOR NWPRI need not be specified. However, if options are listed in $PRIOR NWPRI, then these values are chosen over what is surmised from the informatively labeled theta/omega/sigma records. (See nwpri).
OPTIONS:
The option FIXED should be used. Other appropriate options are BLOCK and VALUES.
REFERENCES: Guide Introduction_7
40 $SIMULATION
MEANING: Instructions for the NONMEM Simulation Step
CONTEXT: NM-TRAN Control Record
USAGE:
$SIMULATION (seed1 [seed2] [NORMAL|UNIFORM|NONPARAMETRIC] [NEW]) ...
[CLOCKSEED=[0|1]]
[SOURCE_EPS=n]
[SUBPROBLEMS=n] [ONLYSIMULATION] [OMITTED]
[REQUESTFIRST] [REQUESTSECOND] [PREDICTION|NOPREDICTION]
[TRUE=INITIAL|FINAL|PRIOR] [TTDF=n]
[BOOTSTRAP=n [REPLACE|NOREPLACE] [STRAT=label] [STRATF=label]]
[NOREWIND|REWIND] [SUPRESET|NOSUPRESET]
[RANMETHOD=[n|S|m|P] ]
[PARAFILE=[filename|ON|OFF]SAMPLE:
$SIMULATION (889215690) (2239177789 UNIFORM)DISCUSSION:
Optional. Requests that the NONMEM Simulation Step be implemented. May also be coded $SIMULATE or $SIML.
Usually, when the Simulation Step is implemented, the simulated observation is taken to be the quantity to which the Y variable (with NM-TRAN abbreviated code) or F variable (with a user-supplied PRED or ERROR routine) is set. This is the default behaviour. However, see option NOPREDICTION below.
If a $ESTIM record appears in the problem specification, then unless the LIKELIHOOD or -2LOGLIKELIHOOD option appears on the $ESTIM record, etas (if any) are understood to be single-subject etas, except when epsilons also appear, in which case the etas are understood to be population etas. If a $ESTIM record does not appear, but a $SIMUL record appears, then unless the NOPREDICTION option appears on the $SIMUL record, etas are understood in the same way. When the NOPREDICTION option is used, the etas are understood to be population etas.
In NM-TRAN abbreviated code, there can be a special block of code that is implemented only during the simulation task (See ICALL, Simulation Block). It is called a “simulation block”.
OPTIONS:
The information coded within each set of parentheses defines the attributes of a single random source. A source of random numbers is an “infinite” stream of random numbers. Each pair of parentheses on the record defines a separate source of random numbers, and the information coded within the parentheses defines the attributes of the source. The sources are ordered as they are defined on the $SIMUL record. The numbers from a source are explicitly available to the user via the NONMEM utility routine: RANDOM (See RANDOM). By default, the first source is earmarked for the simulation of etas and epsilons, and then the numbers from this source are not explicitly available to the user. However, see option SOURCE_EPS below.
- seed1
- Seed1 is the first seed for the random source, an integer between 0 and 2147483647. If this is not the first problem specification in the control stream, then seed1 can be -1, indicating that the random source is to be continued from the previous problem.
- seed2
- Seed2 is the second seed for the random source, an integer between 0 and 2147483647. For use of a second seed, see NONMEM Users Guide, Part IV.
NORMAL-
The random numbers of the source are to be pseudo-normal with mean 0 and variance 1 (unless the source is the first and used to generate eta and epsilon realizations, in which case the variance-covariance of these variables is that specified in the
$OMEGAand$SIGMArecords). This is the default. UNIFORM- The random numbers of the source are to be pseudo-uniform on the interval [0,1].
CLOCKSEED=[0|1](NM75)-
If
CLOCKSEED=1(default is 0), actual starting seed will be 10000*(seconds after midnight)+SEED(applies to both seed1 and seed2, if specified.) This allows a control stream to produce different stochastic results for automated replications, without the need to modify the seed value in the control stream file in each replication. SOURCE_EPS=n(NM75)-
May be used to specify that the simulation of epsilons should use a different source than the default, which is the first. n is the number of the source for epsilons. This source must have the
NORMALattribute. NONPARAMETRIC-
The random numbers from the first source defined with the
NONPARAMETRICattribute are used to generate realizations of random vectors from a (multivariate) nonparametric distribution on eta, obtained from the Nonparametric Step of an earlier problem. An input MSF must also be present. It is understood that the etas are to be simulated from the nonparametric distribution rather than from the pseudo-normal distribution associated with the first source. TheNONPARAMETRICattribute can only be used in the definition of the second or subsequent source. - NEW If the NEW option is used, the vector of eta’s (epsilon’s)
-
changes with each call to
SIMETA(SIMEPS), rather than only at the start of the next individual record (next level-two record). That is, with NEW, a call toSIMETAwill obtain new eta’s, even ifIDhas not changed. A call toSIMEPSwill obtain new eps’s, even ifL2has not changed. The output NONMEM report describes this as “DIFFERENTETAANDEPSWITH EACHCALLTOSIMETAANDSIMEPS”. ONLYSIMULATION-
NONMEM is being asked to simulate data but not to evaluate an objective function on these data.
WRESvalues in tables and scatterplots will be 0.PRED-defined data items in tables and scatterplots will be computed using simulated etas and initial thetas.$ESTIM,$COVand$NONPcannot be used withONLYSIMULATION. Also, see thePREDICTIONandNOPREDICTIONoptions. SUBPROBLEMS=n-
Requests that the entire NONMEM problem is to be repeated n times in succession (including all NONMEM steps: simulation, estimation, covariance, table, scatterplot). Each subproblem includes the Simulation Step, but the random sources are simply continued from subproblem to subproblem. If n=0 or n=1, there is only one subproblem; this is the default. May also be coded
SUBPROBS,NSUBPROBLEMS,NSUBPROBS. With all versions of NONMEM, the data set for each subproblem after the first is the same data set used by the previous subproblem, and includes any changes (transgeneration) made by the previous subproblem. With NONMEM 7.4 and higher, seeREWIND, below. With NONMEM 7.3 and higher, the maximum number of subproblems is increased from 9999 to 2147483647. REQUESTFIRST-
NONMEM sets a variable
IFIRSTEMin ModuleROCM_INT(referenced asFIRSTEMin abbreviated code) informingPREDwhether or notPREDneeds to compute first-partial derivatives with respect to eta. Normally, during the Simulation Step, these derivatives are not needed, either by NONMEM or by the user. However, the user may want the first-partial eta derivatives of aPRED-defined item and may wantFIRSTEMto reflect this. With theREQUESTFIRSToption, theFIRSTEMvariable is set so to informPREDthat the derivatives need to be computed. In this case, if an abbreviated code is used to compute thePRED-defined item, the item should not be computed within a simulation block, because NM-TRAN does not provide derivatives forPRED-defined items in a simulation block. REQUESTSECOND-
NONMEM sets a variable
ISECDERin ModuleROCM_INT(referenced asMSECin abbreviated code) informingPREDwhether or notPREDneeds to compute second-partial derivatives with respect to eta. Normally, during the Simulation Step, these derivatives are not needed, either by NONMEM or by the user. However, the user may want the second-partial eta derivatives of aPRED-defined item and may want theMSECvariable to reflect this. With theREQUESTSECONDoption, theMSECvariable is set so to informPREDthat the derivatives need to be computed. In this case, if an abbreviated code is used to compute thePRED-defined item, the item should not be computed within a simulation block, because NM-TRAN does not provide derivatives forPRED-defined items in a simulation block.REQUESTSECONDimpliesREQUESTFIRST. PREDICTION-
Permitted only with
ONLYSIM, and is the default. With or withoutONLYSIM, unless theNOPREDICTIONis used, the simulated observation is taken to be the quantity to which the Y variable (with NM-TRAN abbreviated code) or F variable (with a user-suppliedPREDorERRORroutine) is set. In a simulation block, theDVvariable may be directly set to the simulated observation, but the Y (or F) variable should also be set to this observation. E.g., if a line of codeDV=… is used in a simulation block, be sure to follow this line with the additional line Y=DV. NOPREDICTION-
Permitted only with
ONLYSIM. Indicates that the simulated observation will be taken to be the value to which theDVvariable is set. The code Y=… is permitted inside or outside a simulation block, but if such code appears in a simulation block, be sure to also include e.g.DV=Y. Also, etas (if any) are understood to be population etas, even if epsilons do not appear. TRUE=INITIAL-
The initial estimates given in the control stream are used as the parameter values (“true values”) in the simulation, except when a model specification file is input. When a model specification file is input, the initial estimates with the previous run are used as the parameter values (“true values”) in the simulation, and the final estimates with the previous run are used as the initial estimates in all tasks other than the simulation. The UCP used with these other tasks are the same as with the previous run. This is the default. May not be used with
$MSFIin conjunction withSUBPROBLEMS=n(n > 1). TRUE=FINAL- An input model specification file must be used. The final estimates with the previous run are used as the parameter values (“true values”) in the simulation and as the initial estimates in all tasks other than the simulation. The UCP used with these other tasks are new, so that a UCP value of 0.1 now corresponds to a final estimate from the previous run.
TRUE=PRIOR-
The values stored in
THET_P,OMEG_P,SIGM_Pby thePRIORroutine are used as the true parameter values (“true values”) in the simulation. TTDF=n(NM75)-
If
TTDFis set to a non-zero integer value n, thetas are simulated with n degrees of freedom t-distribution.TRUE=PRIORmust be specified as well. Priors must also be specified appropriately. See also$TTDFcontrol record (NM75) to specify degrees of freedom for each theta. The value ofTTDFoverrides$TTDFSeeINTRODUCTIONTO NONMEM 7, SimulatingTHETASwith t-Distribution BOOTSTRAP=n-
With the
BOOTSTRAPoption, NONMEM does not perform the usual simulation activity of randomly creatingDVvalues for a new data set, but rather selects a random set of subjects from an existing “template” data set (which must already have legitimateDVvalues). TheBOOTSTRAPnumber n refers to how many subjects are to be randomly selected from the data set. Setting -1 means to randomly select as many subjects as are in the data set. For example, if 400 subjects are in the simulation template data set, then 400 subjects are randomly selected. The random source is, in effect, uniform, because any subject is equally probable. If n is greater than the number of subjects, NONMEM will use the number of subjects. TheBOOTSTRAPoption in$SIMLis most suitable for multi-subject data, in which there is anIDdata column identifying the subjects. However, see the example “BOOTSTRAPPINGSINGLESUBJECTDATA” in theINTRODUCTIONTO NONMEM 7. REPLACE- Subjects are selected with replacement. This results in some subjects not being selected at all, and some subjects selected more than once. This is the default.
NOREPLACE-
Subjects are selected without replacement, that is, without repeating a subject. The
NOREPLACEfeature is reasonable if there are many more than n subjects to choose from in the template dataset (for example, 1000 subjects in the template, and for each sub-problem, 50 of them are randomly chosen without replacement, that is, without repeating a subject). STRAT- The label of a data item that serves as the stratification. This splits the data set into distinct sub-sets, guaranteeing a specific number of subjects will be selected from each category.
STRATF-
The label of a data item that contains the fraction that should represent a category in the bootstrapped data set. Without
STRATF, the number of subjects to be taken from a given category is proportional to the number of subjects in the base data set. NOREWIND|REWIND-
The
NOREWINDoption requests that if any input data item(s) are changed (transgenerated) during a the simulation step of a subproblem, they remain changed at the start of the next sub-problem. This is the default. With NONMEM 7.4, theREWINDoption requests that the original data set be used for all sub-problems. If the data set is not changed during simulation, theNOREWINDandREWINDoptions give the same results.Keep in mind that transgeneration performed on the data set using $INFN with ICALL=1 affects the original data set and these changes are unaffected by REWIND and NOREWIND options. For example: $INFN IF (ICALL==1) THEN DOWHILE(DATA) ... data transgeneration statements here ENDDO ENDIF SUPRESET|NOSUPRESET-
This option affects seeds for random sources when a
$SIMULATIONrecord is included in the scope of a$SUPERproblem. TheSUPRESEToption requests that, with subsequent iterations of a superproblem, the seed(s) for all random sources are reset back to that listed in the$SIMULATIONrecord of the control stream file. This is the default. With NONMEM 7.4, theNOSUPRESEToption may be used to prevent resetting the random seeds, so that each iteration serves as a new random instance. RANMETHOD=[n|S|m|P]-
As of NONMEM 7.3, the
RANMETHODoption is available for the$SIMrecord, to use alternative random numbers generators. N is the random number generator type, S is Sobol sequence, and m is the Sobol scrambler. The default is NONMEM’s traditional one, n=4. Among the Sobol sequence methods, the S2 method appears to provide the least biased random samples, that is nearly uniform distribution, with good mixing in multi-dimensional spaces. As of NONMEM 7.4,RANMETHODwill also act on the P modifier , which will retain separate seed sequences for each subject, so that the random variable patterns are retained regardless of whether the simulation is done in single computing or parallel computing mode. (See$ESTIMATION). PARAFILE=filename-
As of NONMEM 7.4, the Simulation Step computation may be parallelized. by default. By default, parallelization is not turned on, because simulation is very rapid anyway, and often does not need to be accelerated. When modeling with super-ID nested
ETAlevels ($LEVELrecord is present), parallelization will not occur, since these etas are shared across individuals, and there is no guarantee that all subjects sharing the same etas will be simulated by the same process.PARAFILE=filenamespecifies a different parafile than was used for the previous step.PARAFILE=ONturns on parallelization for the Simulation Step. SetRANMETHOD=Pto permit assure consistient seed patterns regardless of whether or not parallelization is performed. E.g.,$SIML…PARAFILE=ONRANMETHOD=PPARAFILE=OFFturns off parallelization for the Simulation Step. This is the default. OMITTED- The Simulation Step is not implemented.
REFERENCES: Guide IV, section III.B.13 , IV.I; Guide V, section 12.4.8; Guide VI, section III.C , III.E , IV.B , IV.G.1
41 $SIZES
MEANING: Array sizes for NONMEM and PREDPP
CONTEXT: NM-TRAN Control Record
USAGE:
$SIZES [constant=value] [constant=value] …
SAMPLE:
$SIZES LIM1=30000 MAXFCN=2000000 NO=500DISCUSSION:
$SIZES is optional. If present, it must precede the first $PROBLEM or $SUPER record.
Certain constants are used in NM-TRAN, NONMEM and PREDPP. With NONMEM 7.2 and higher, the user may override many of the constants with the $SIZES record.
See the discusion of sizes for a discussion of how these constants are determined, and how they are communicated to NONMEM and PREDPP. (See SIZES FSIZES prsizes)
Any non-zero value specified on the $SIZES record overrides both the default and the value that NM-TRAN would have specified. (A value of 0 is ignored.) As of NONMEM 7.3, as an alternative to modifying sizes.f90 to very large maximum sizes, you can tell NMTRAN the maximum size that may be needed by specifying a $SIZES constant as a negative value. Thus, a user can give NMTRAN permission to deal with all problems that have data input files that have up to 1000 data items, and up to 150 etas and epsilons, and up to 200 thetas, by the following:
$SIZES PD=-1000 LVR=-150 LTH=-200but the values of these constants when the NONMEM executable is constructed will be only what is needed for the particular problem. In contrast,
$SIZES PD=1000 LVR=150 LTH=200will result in sizing the NONMEM executable with these values, and won’t make a “tailor fit”. This would result in a very large executable regardless of the model size. Thus, $SIZES PD=-1000 tells NMTRAN that you may need as many as 1000 data items in a data file, whereas $SIZES PD=1000 tells NMTRAN that you need exactly that size.
List of $SIZES Record Options and Their Default Values
LTH=100
LVR=30
LVR2=20
NO=250
MMX=10
LNP4=4000
LSUPP=4050
LIM7=2
LWS3=9000
MAXIDS=10000
LIM1=10000
LIM2=100000
LIM3=10000
LIM4=1000
LIM5=200
LIM6=400
LIM8=200
LIM11=25
LIM13=1000
LIM15=1000
LIM16=400
MAXRECID=200
PC=30
PCT=30
PIR=700
PD=50
PDT=50
PAL=50
MAXFCN=1000000
DIMTMP=500
DIMCNS=500
DIMNEW=1000
DIMVRB=200
PL=10
NPOPMIXMAX=10
MAXOMEG=70
MAXPTHETA=90
MAXITER=210
ISAMPLEMAX=10
MAXSIDL=0
PNM_MAXNODES=100
MAXNRDS=PC
PAST_SIZE=4000Additional constants that may be set with $SIZES:
LADD_MAX (See resource/SIZES.f90).
(See SIZES FSIZES prsizes)
REFERENCES: Guide Introduction_7
42 $SLKJDF
MEANING: Specifies LKJ decorrelation degrees of freedom for each SIGMA block
CONTEXT: NM-TRAN Control Record
USAGE:
$SLKJDF 0 (default) $SLKJDF [value … ] $SLKJDF [(value)[xn]] …
DISCUSSION:
SLKJDF is an option of the $ESTIMATION record. $SLKJDF is a separate record that allows the user to specify LKJ decorrelation degrees of freedom for each SIGMA block.
SAMPLE:
$SLKJDF 4.5 3.5 -2.0Where 4.5 degrees of freedom are specified for the first sigma block, 3.5 for the second, and - 2.0 specifies 2 degrees of freedom for the third sigma block, but a user-defined definition of the standard deviations of the diagonals for the third sigma block. Use the SIGMA_STD_PRIORU.f90 file in the ..directory as a template to modify the SIGMA_STD_PRIORU to provide the desired probability density function. Set $SUBR OTHER=SIGMA_STD_PRIORU.f90 to use the user modified template (you may rename the file for organizational purposes).
RECORD ORDER:
Follows $SIGMA
REFERENCES: Guide Introduction_7
43 $SUBROUTINES
MEANING: Lists certain subroutine choices for the NONMEM Executable
CONTEXT: NM-TRAN Control Record
USAGE:
$SUBROUTINES [subname1 = name1] [subname2 = name2] ...
[TOL=n] [ATOL=n] [SSTOL=n] [SSATOL=n]
[SUBROUTINES=kind]SAMPLE:
$SUBROUTINES PRED=pred
DISCUSSION:
Optional. Describes the choice of subroutines for the NONMEM executable (also called the NONMEM load module). May also be coded $SUBS.
One of the following is required:
ADVAN=name (also specifies the use of PREDPP).
PRED=name (specifies a user-supplied PRED routine).OPTIONS:
subname=name-
Subname is the entry name of a user-supplied subroutine to be included in the NONMEM executable. Name is the name of a file containing FORTRAN source code for the subroutine. Name is used by NM-TRAN as documentation (in
FREPORT) and for inclusion of source code (inFSUBS). More than one such option may be specified. The names need not be unique. Name may not contain embedded spaces. Name may contain as many characters as fit a single line. It must not start with a digit. If name contains commas, semi-colons, equal signs, or parentheses, it must be surrounded by single quotes ’ or double quotes “. Subname may be chosen from the following categories. User-supplied NONMEM routines:CRITMIXPREDCRITMIXPRIORCONTRCCONTRUSMETASPTWOUser-suppliedPREDroutine:PREDSubroutines from the PREDPP library:ADVANTRANSSS(See ss_option). User-supplied PREDPP routines: PKERRORMODELDES AES TOLINFNOther user-supplied subroutines:OTHEROTHERspecifies the name of a file that will be copied intoFSUBS(e.g.,OTHER=filename). A subroutine or function in file filename might be called by a user-supplied routine or by verbatim code. With NONMEM 7.4, it might be listed on a$ABBR FUNCTIONrecord. TheOTHERoption may be used up to 40 times, to specify the names of up to 40 such files; each file may contain multiple subroutines and functions. These routines must be in Fortran 90 format. SUBROUTINES=kind- Specifies the kind of subroutines to be included in the NONMEM executable (“kind” must be DP - double precision).
TOL=n-
WhenPREDPP is specified with anADVANthat requires a TOL routine, this option can be used to supply a NRD (“number of required digits”) value. “n” is an integer. This is a relative tolerance.ForTOL and the options that follow (ATOL,SSTOL,SSATOL), it is also possible to codeTOL=nameto specify the name of a user-supplied TOL routine, or to include$TOLabbreviated code, either of which allows all these values to be assigned by compartment. A user-supplied TOL routine also allows values to be assigned by compartment and for each NONMEM step. See also the TOL option of the$COVARIANCErecord. Required.
ATOL=n-
Specifies the absolute tolerance for
ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADVAN16,ADVAN17, andADVAN18. Optional. Default is 1.0E-12. See also theATOLoption of the$ESTIMATIONand$COVARIANCErecords. SSTOL=n- Specifies the relative tolerance for Steady State evaluation. Optional. Default is TOL.
SSATOL=n-
Specifies the absolute tolerance for Steady State evaluation. Optional. Default is
ATOL.
REFERENCES: Guide IV, section III.B.6
44 $SUPER
MEANING: Identifies the start of a NONMEM Superproblem
CONTEXT: NM-TRAN Control Record
USAGE:
$SUPER [SCOPE=n1] [ITERATIONS=n2]
[NOPRINT|PRINT]SAMPLE:
$SUPER SCOPE=2 ITERATIONS=10DISCUSSION: Optional.
OPTIONS:
SCOPE=n1- Number of problems in the superproblem. Required. Must be at least 1.
ITERATIONS=n2-
Number of iterations of the superproblem. Required. Must be at least 2.
ITERATIONSmay also be codedNITERATIONS. NOPRINT- NONMEM printout displaying the input information for each of the problems of the superproblem will be generated only during the first iteration. This is the default.
PRINT- NONMEM printout displaying the input information for each of the problems of the superproblem will be generated during all iterations.
To define a sequence of problems as a superproblem, precede the $PROBLEM record of the first problem of the sequence with a $SUPER record. More than one $SUPER problem can be present in the control stream, but the level of nesting can be at most 2.
The pattern for nested super problems is
$SUPER SCOPE=s1
$PROBLEM 1… $PROBLEM n $SUPER SCOPE=s2 $PROBLEM n+1 … $PROBLEM n+m
The second super problem must be totally contained with in the first.
n >= 1 and m >= 1 is required (each $SUPER problem must contain at least one $PROBLEM).
If s1 > n, then the scope of the first $SUPER includes the second $SUPER, and the scope of the second must be entirely contained within the scope of the first: s1 >= n+s2.
(See Problem_Iteration_Counters).
REFERENCES: None
45 $SVARF
MEANING: Specifies the weighting to the standard deviations of SIGMA
CONTEXT: NM-TRAN Control Record
USAGE:
$SVARF 0 (default) $SVARF [value … ] $SVARF [(value)[xn]] …
SAMPLE:
$SVARF 2.0 5.0Where 2.0 is specified for the first sigma block, 5.0 for the second. If the corresponding $SLKJDF value is negative then this is argument STDSSP in user-defined SIGMA_STD_PRIORU.f90.
DISCUSSION:
The $SVARF is a separate record that allows the user to specify the weighting (inverse variance) to the standard deviations LKJ decorrelation degrees of freedom for each SIGMA block. Used with NUTS method.
$EST SVARF over-rides $SVARF.
REFERENCES: Guide Introduction_7
46 $TABLE
MEANING: Requests that NONMEM generate a table
CONTEXT: NM-TRAN Control Record
USAGE:
$TABLE [list1] [BY list2]
[PRINT|NOPRINT] [FILE=filename]
[NOHEADER|ONEHEADER] [ONEHEADERALL]
[NOTITLE|NOLABEL]
[FIRSTONLY|LASTONLY|FIRSTLASTONLY] [NOFORWARD|FORWARD]
[APPEND|NOAPPEND]
[FORMAT=s] [LFORMAT=s] [RFORMAT=s]
[IDFORMAT=s]
[NOSUB=[0|1]]
[EXCLUDE_BY list3]
[PARAFILE=[filename|ON|OFF]
[ESAMPLE=n1][WRESCHOL]
[SEED=n2] [CLOCKSEED=[0|1]]
[RANMETHOD=[n|S|m] ]
[VARCALC=[0|1|2|3]]
[FIXEDETAS=(list)]
[NPDTYPE=[0|1]]
[INTERPTYPE=[0|1]]
[UNCONDITIONAL|CONDITIONAL] [OMITTED]SAMPLE:
$TABLE ID DOSE WT TIMEDISCUSSION:
Requests that a NONMEM table be produced. Up to 10 $TABLE records may be included in a given problem.
OPTIONS:
- list1
-
A list of item labels (i.e., user-chosen item types) to be tabled along with
DVand the special itemsPRED,RES, andWRES. The user may request the following additional special diagnostic items by including their name in the list.NPRED,NRES,NWRESCalculated assuming non-conditional estimation and no etaepsilon interaction.NPREDandNRESare same asPREDandRES.NWRESis same asWRESwhenINTERACTIONis not set in$EST.PREDI,RESI,WRESICalculated assuming non-conditional estimation with etaepsilon interaction. Always same asPRED,RES, andWRES.CPRED,CRES,CWRESCalculated assuming conditional estimation and no etaepsilon interaction.CPREDI,CRESI,CWRESICalculated assuming conditional estimation with eta-epsilon interaction.CIPRED,CIRES,CIWRESConditional individual valuesCIPREDI,CIRESI,CIWRESIConditional individual values with eta-epsilon interaction.EPRED,ERES,EWRESMonte-Carlo generated diagnostics and are not linearized approximations like the other diagnostic types.EWRESis the Monte-Carlo version ofCWRESI.ECWRESMonte-Carlo version ofCWRES.NPDEMonte-Carlo generated normalized probability distribution error.NPDThe correlated (or non-decorrelated)NPDEvalue.OBJIObjective function values for each individual (same as given in the root.phi file). The sum of the individual objective function values is equal to the total objective function.
In addition the list may include:
Data item labels.
Labels ETA(1), ETA(2), … ,ETA(10), … , ETA(70), etc., or alternatively, labels ETA1, ETA2, … ,ETA10, … , ETA70, etc., corresponding to eta(1), eta(2), etc. The labels in the output will be ETA1, ETA2, … , ET10, … ET70,
- etc.
-
WithNONMEM 7.3, a range of etas may be requested:ETAS(k:n) is equivalent to ETAk, …, ETAn where n > k.LASTcan be used in place of n, and requests the last (highest numbered) eta in the problem. E.g.ETAS(1:LAST) With NONMEM 7.4, more flexible syntax is available: The word TO may be used in place of “:”. The BY expression may be used:ETAS(1 TO 10 by 3) prints out etas 1,4,7,10ETAS(LASTTO 1 by -3) prints out etas 10,7,4,1 (assumingLAST=10) A number list may be given:ETAS(1,5,12,4) prints out etas 1, 5, 12, 4.ETAS(4:1) prints etas 4, 3, 2, 1ETAS(4:1 by -2) prints etas 4, 2ETAS(1:4 by -1) prints etas 4, 3, 2, 1 (the by value sets the direction).WithNONMEM 7.4, a symbolic label specified in$ABBR REPLACEmay be listed in$TABLE. For example:$ABBR REPLACEETA(CL)=ETA(1) …$TABLE ETA(CL)
Reserved positions of MODULE NMPRD4 (See $ABBREVIATED). COM(k) or :k denotes the kth reserved position. (There must be exactly 4 digits after “:”. Use leading 0’s as necessary.) E.g., COM(3) or :003. Labels of the form :k will be used in the output.
Labels of PRED-defined items in MODULE NMPRD4 if abbreviated code is present (up to PDT distinct such labels in any one problem, for all tables and scatterplots. PDT is a constant in resource/SIZES.f90; default value is 500.) These may include labels of the NM-TRAN-
- defined items:
- 0nnn e.g., 0010 stands for A00nnn 1nnn e.g., 1010 stands for A01nnn 2nnn e.g., 2010 stands for C00nnn 3nnn e.g., 3010 stands for D00nnn 4nnn e.g., 4010 stands for E00nnn 5nnn e.g., 5010 stands for F00nnn 6nnn e.g., 6010 stands for P00nnn
These may also include:
labels VECTRA(1), VECTRA(2), ... ,VECTRA(9), or alternatively,
labels VA_1, VA_2, ... ,VA_9, corresponding to VECTRA(1), VECTRA(2),
..., VECTRA(9).
The labels in the output will be VA_1, VA_2, ... , VA_9.
Similarly, for VECTRB and VECTRC.
Synonyms may be defined on either the $TABLE or $SCATTER record for special items PRED, RES, WRES; for PRED-defined items; for NM-TRAN-defined items; and for reserved positions of MODULE NMPRD4.
E.g., assume that IWRES is a PRED-defined label, that at least 3 positions of NMPRD4 are reserved, and that NM-TRAN has generated A00032 as the label for a derivative in the generated FSUBS routine. Either $TABLE or $SCATTER records may include:
WRES=RES1,IWRES=RES2,COM(3)=ABC,0032=DK.For a discussion of the values of ETAs and PRED-defined items (e.g., are they based on initial or final values of theta? Simulated or zero or conditional values of eta?), see values.
Elements of G and H E.g., $TABLE G11 G21 G31 H11 H21 The format is Gk1 or Hk1, where k is an integer value, e.g. 1-9 or 01-99 or 001-999. Gk1 requests the value of G(k,1), and Hk1 requests the value of H(k,1), where G and H are arguments of subroutine PRED. G(k,1) is the partial of F (the prediction) with respect to ETA(1), and H(k,1) is the partial of F with respect to EPS(1). (HH may be coded instead of H, but it is treated as if it were H.) A variable of the form Gk1 or Hk1 is not a reserved variable. If it is previously defined (i.e., if it is listed in $INPUT, or used on the left in abbreviated code, or used as a synonym e.g., $TABLE G11=COM(1)), then that definition of the variable is used, and there is no change from previous versions of NM-TRAN. Only if there is no other previous definition of the variable will it be understood to be an element of G or H. What NM-TRAN actually displays is the variable in MODULE NMPRD4 that was used to compute the derivative of interest (a variable in the series A00nnn, C00nn, or D00nnn) with the appropriate synonym such as G11. If there is no such variable, this is an error. NMTRAN will not display variables that are not computed , e.g., G41 when there are only 3 etas in the problem, or when there are 4 etas but ETA(4) does not contribute to the value of Y. [There is a workaround if the zero is wanted as a place holder in the table. In abbreviated code ($ERROR or $PRED or $PK) G41=0. Now G41 may be listed in $TABLE or $SCATTER.] This feature is designed so that the verbatim code in the “compute.cwres” R documentation is unnecessary.
E.g., Instead of:
$ABB COMRES=5
"LAST
" COM(1)=G(1,1)
" COM(2)=G(2,1)
" COM(3)=G(3,1)
" COM(4)=HH(1,1) (or H(1,1) with $PRED)
" COM(5)=HH(2,1) (or H(2,1) with $PRED)
$TABLE ID COM(1)=G11 COM(2)=G21 COM(3)=G31
COM(4)=H11 COM(4)=H21IPRED MDV NOPRINT ONEHEADER FILE=cwtab1 Use only: $TABLE ID G11 G21 G31 H11 H21 IPRED MDV NOPRINT ONEHEADER FILE=cwtab1
(See Displayed PRED-Defined Items).
When tables are printed, the maximum number of labels permitted in list1 is 8; otherwise, it is PDT. (But see the NOAPPEND option.)
- list2
- A list comprised of one or more labels from list1. The rows of the table are sorted on the data items in list2. List2 may not appear when the number of labels in list1 is greater than 8. That is, a table with more than 8 data items also may not be sorted.
NOSUB=[0|1]-
With
NOSUB=0, label substitution will be performed for final estimates in table files. (See$ABBREVIATED). This is the default. WithNOSUB=1, label substitution will not be performed. - list3
-
A list comprised of one or more items that are permitted in list1, e.g., data item labels and labels of
PRED-defined items in MODULENMPRD4. They follow optionEXCLUDE_BY. Labels in list3 are called exclusion variables. If one or more of them have a non-zero value for a given data record, the row of the table corresponding to the data record will be excluded from the table file. Exclusion variables are not listed in the table file. They have no effect on the printed table or scatters in the NONMEM output, e.g., they do not cause any rows to be deleted from the printed table and are displayed in the printed table. PARAFILE=filename-
Weighted residuals are evaluated before the first
$TABLErecord. As of NONMEM 7.4, this computation is parallelized if parallelization is on when the first Table Step is implemented.PARAFILE=filenamespecifies a different parafile than was used for the previous step.PARAFILE=ONturns on parallelization for the weighted residuals.PARAFILE=OFFturns off parallelization for the weighted residuals. ThePARAFILEoption may be specified on any$TABLErecord, but applies to all$TABLErecords. ESAMPLE=n1-
n1 specifies the number of random samples used to calculate the Monte-Carlo diagnostics. Should be specified only on the first
$TABLErecord. Default is 300. WRESCHOL(NM73)-
Use the Cholesky square root of the variance, rather than the eigenvalue square root, when computing weighted residuals. Should be specified only on the first
$TABLErecord. This can speed up the Table Step when there are a large number of observations per individual. SEED=n2-
n2 specifies the starting seed for generating the Monte-Carlo diagnostics. Should be specified only on the first
$TABLErecord. Default is 11456. CLOCKSEED=[0|1](NM75)-
If
CLOCKSEED=1(default is 0), actual starting seed will be 10000*(seconds after midnight)+SEED. This allows a control stream to produce different stochastic results for automated replications, without the need to modify the seed value in the control stream file in each replication. RANMETHOD=[n|S|m]-
n: the random number generator used for the Monte-Carlo simuations of weighted residual items. 0: ran0 of reference [5], minimal standard generator 1: ran1 of reference [5], Bays and Durham. 2: ran2 of reference [5]. 3: ran3 of reference [5], Knuth. (Default) 4: NONMEM’s traditional random number generator used in
$SIMULATIONS: sobol sequence m: the type of scrambling desired 0: no scrambing (S0 is the same as S) 1: Owen type scrambling 2: Faure-Tezuka type scrambling 3: Owen plus Faure-Tezuka type scrambling. See the description ofRANMETHODfor$ESTIM. Among the Sobol sequence methods, the S2 method appears to provide the least biased random samples, that is nearly uniform distribution, with good mixing in multi-dimensional spaces. SeeINTRODUCTIONTO NONMEM 7, Reference [5] SeeINTRODUCTIONTO NONMEM 7, Monte Carlo Importance Sampling EMRANMETHODshould be specified only on the first$TABLEcommand. TheRANMETHODset in the$TABLEcommand does not propagate to$ESTor$CHAIN. OptionsPRINT,NOPRINT,HEADER,NOHEADER,NOLABEL,NOTITLE,FILE,FIRSTONLY,LASTONLY,FIRSTLASTONLY,FORWARD,NOFORWARD,APPEND,NOAPPEND,FORMAT,VARCALCapply to the individual$TABLErecord. They must be specified for each table to which they apply. PRINT- A printed table appears in the NONMEM output. This is the default.
NOPRINT- No printed table appears in the NONMEM output.
FILE=filename-
The table is written to the given file in character form, e.g., ASCII or
EBCDIC, according to the hardware platform. Filename may not contain embedded spaces. If it contains commas, semi-colons, or parentheses, then it must be surrounded by single quotes ’ or double quotes “. Filename may also contain equal signs if it is enclosed in quotes. Filename may contain at most 71 characters. If filename is the same as any option of the$TABLErecord, it must be enclosed in quotes. Filename can differ between$TABLErecords. Default: No table file is output. Required withNOPRINT. NOHEADER-
Used only with the
FILEoption. No header lines are included in the table file. ONEHEADER-
Used only with the
FILEoption. Only the first line of the table is a header line. ONEHEADERALL(NM74)-
Used only with the
FILEoption andFORWARD. Only the first line of the table file is a header line. May also be codedONEHEADERPERFILE. NOLABEL-
Used only with the
FILEoption. Do not print column labels. It may be combined withONEHEADERto print only the title at the beginning of each table. NOTITLE-
Used only with the
FILEoption. Do not print table titles. It may be combined withONEHEADERto print only the column labels at the beginning of each table.NOLABELNOTITLEis equivalent toNOHEADER. FIRSTONLY-
Only information corresponding to the first data record from each individual record appears in the table. May also be coded
FIRSTRECORDONLYorFIRSTRECONLY. LASTONLY-
Only information corresponding to the last data record from each individual record appears in the table. May also be coded
LASTRECORDONLYorLASTRECONLY. FIRSTLASTONLY- Only information corresponding to the first and last data record from each individual record appears in the table.
NOFORWARD-
Used only with the
FILEoption. When the table file is opened during a given (sub)problem, it is positioned at the start of the file. This is the default. However, when there are multiple$TABLErecords within the same problem and having the same filename, the situation is a little more complicated; see the text describing theFORWARDoption. FORWARD-
Used only with the
FILEoption. When a table file is opened during a given (sub)problem, it is forwarded to the end of the file. This allows a table file to accumulate tables from multiple subproblems and superproblems. Moreover, if in the same (sub)problem the$TABLErecord is followed by a contiguous succession of additional$TABLErecords having the same filename as the given record, then even though some of these additional records may have theNOFORWARDoption, or have neither theNOFORWARDnor theFORWARDoptions, theFORWARDoption will apply to each of the records in the succession. APPEND-
Items
DV,PRED,RES,WRESappear automatically as the last 4 columns of the table. This is the default. NOAPPEND-
Requests that items
DV,PRED,RES,WRESnot appear automatically. When this is specified, the number of labels (i.e., user-chosen item types) that may appear in the table can be as large as 12 (rather than 8) for a printed table, and as large asPDT=4(rather than PDT) for a table file. If itemsPRED,RES, and/orWRESare explicitly coded in list1, then they appear in the table, exactly as listed. (Previously to NONMEM VI 2.0, they could be included in the list, but were suppressed from the portion of the table described by list1 in favor of the automatically-generated items.) FORMAT=s-
This option defines the delimiter and number format for table files. It affects table files until a different
FORMATis specified. s defines the delimiter [,|s(pace)|t(ab)] followed by a Fortran format specification. The default is s1PE11.4. There are many more options forFORMAT. For more details, see the format help item: (See format). Alternately, useLFORMATand/orRFORMAT. SeeINTRODUCTIONTO NONMEM 7,FORMAT=s1PE11.4 LFORMAT=s-
Specifies the format of the full label record of a table. Allows different formats for different columns. Sample:
LFORMAT="(4X,A4,4(',',4X,A8))" RFORMAT=s-
Specifies the format of the full numeric record of a table. Allows different formats for different columns. Sample:
RFORMAT="(F8.0,,4(',',1PE12.5))"MultipleLFORMAToptions andRFORMAToptions may be present and will be concatenated. The format specifications are not checked by NMTRAN. If either is invalid, the run will fail in NONMEM. BothLFORMATandRFORMATaffect table files until a different format is specified. UseLFORMAT="NONE"orRFORMAT="NONE"to resume use of the default format (which may have been specified by theFORMAToption) in a subsequent problem. IDFORMAT=s(NM75)-
By default the
IDcolumn has the same format as specified byFORMAT.IDFORMATspecifies the format for theIDcolumn in table files. If an improper format is given, it defaults to that ofFORMAT. Some examples:IDFORMAT=IInteger value, left adjusted in the field.IDFORMAT=I6Integer value, right adjusted in the first 6 characters of the field.IDFORMAT=F6.1Floating value, with single digit to the right of the decimal. VARCALC=[0|1|2|3](NM74,NM75)-
To report standard errors associated with etas (individual parameters) in the tables for user-defined variables, set
$TABLE…VARCALC=1. See setest.ctl in the examples directory. This appends an item named item_SE following each user-defined item in list1. If usingRFORMATformatting option, make sure to allow enough format fields to include reported standard errors. In addition, full variances-covariances among all user-defined variables and PREDPP parameters will be outputted to file root.vpd (theFORMATused for this file is that defined in the$ESTstatement). With NONMEM 7.5, file root.vpt is also created. This contains variance-covariances associated with thetas (or omegas and sigmas) as well as those associated with etas/individual parameters. To append the comparable total standard errors item_SE to tables, set$TABLE…VARCALC=3. To only create the vpd and vpt files, and not report SE’s to the table, setVARCALC=2. This option must be re-coded for each$TABLErecord for which SE’s are wanted. IfVARCALC=1or 2 or 3 is requested at least once among any of the tables, then the variance items are written to the vpd and vpt files.VARCALC=0requests neither SE’s nor vpd nor vpt, and is the default. Values ofCOMACT, which identify copying passes, may need to be tested in abbreviated code when this feature is used. SeeINTRODUCTIONTO NONMEM 7, Requesting Standard Errors to UserDefined and PREDPP Parameters FIXEDETAS=(list)(NM74)-
Specified etas may be treated as if they are fixed effects when evaluating population diagnostics during the
$TABLEstep. This is particularly suitable for super-ID$LEVELetas that span groups of subjects, as if they were a fixed effect when evaluating populations characteristics during the$TABLEstep, such asPRED,CWRES,NPDE, etc. In this way, thePREDevaluated will be, not of the total population, but of a given site level for that subject. List is a number-list of etas. For example,FIXEDETAS=(3-6) A number-list may contain a single integer, a range of integers (with -), or a series of integers and ranges separated by comma. NPDTYPE=1-
The strict stochastic (Monte Carlo) method over the data y domain as well as etas is implemented for
NPDdiagnostics. NPDTYPE=0- An asymptotic assessment of the residual variability is used. This is the default.
INTERPTYPE=[0|1](NM751)-
By default the interpolation for
NPD/NPDEevaluations type is 0, that is, the nearest value in the quantile area is chosen, without interpolation. IfINTERPTYPE=1, then an interpolation is performed using an inverseNORM linearized interpolator. In addition, forNPDEit will extrapolate quantile positions that are outside the Monte Carlo sampled range, allowing severe outliers to be less truncated. For example, by default, if theEXAMPLE=300, and a quantile position is 0.001, then the 1/300 value is returned, the lowest value from 300 samples. WithINTERPTYPE=1, an extrapolation is performed to better represent the 0.001 value, and will be less than the lowest value among 300 samples simulated. TheINTERPTYPEhas less impact with increasingESAMPLE. UNCONDITIONAL- The Table Step is always implemented. This is the default.
CONDITIONAL- The Table Step is implemented only when the Estimation Step terminates successfully or is not implemented.
OMITTED- The Table Step is not implemented.
REFERENCES: Guide IV, section III.B.16; Guide V, section 9.5.1 , 10.7.1
47 $THETA
MEANING: Gives initial estimates and bounds for thetas
CONTEXT: NM-TRAN Control Record
USAGE:
$THETA value1 [value2] [value3] …
[(value)xn] ...
[label=value] ...
[NAMES (label ...)value ...]
[NUMBERPOINTS=n]
[ABORT|NOABORT|NOABORTFIRST]SAMPLE:
$THETA (0,3) 2 FIXED (0,.6,1) 10 (-INF,-2.7,0) (37 FIXED)DISCUSSION:
Gives initial estimates and bounds for elements of the THETA matrix. Thetas are numbered in the order in which they are defined.
OPTIONS:
Each value defines a theta and gives its initial estimate and bounds. A value has one of 4 forms:
init [FIXED]-
Init is the initial estimate. If
FIXEDis used, the final parameter estimate is to be constrained to equal the initial parameter estimate. ([low,] init [,up] [FIXED])-
Low and up are lower and upper bounds respectively. They are the boundaries for the minimization search. Commas are optional. If an upper bound is used, a lower bound must also be used (e.g., -INF; see below). The lower and upper bounds (or if just the lower bound is used, then just this bound) may be omitted, in which case this form differs from the one described above only in so far as with this form, the initial estimate and the
FIXEDattribute are enclosed in parentheses. WhenFIXEDis used, and a bound appears the bound must equal the initial estimate.FIXEDis implied when all three values are equal. The lower bound can be -INF (i.e., -infinity), and the upper bound can be INF (i.e., +infinity). These are the defaults for lower and upper bounds. They are communicated to NONMEM as numeric values -1000000 and 1000000. ([low,] init [,up]) [FIXED]-
This is just like the form described above except that if the
FIXEDattribute is used, the attribute occurs outside the parentheses, and then if moreover, a bound appears, the bound need not equal the initial estimate. (low,,up)-
The commas are required. Because no initial estimate is given, a search for an initial estimate (the Initial Estimates Step) is undertaken by NONMEM. With NONMEM 7.4, when initial thetas are to be estimated, evaluations can now be done for
FOCEand Laplace, not just for FO. (value)xn-
Any initial value or group of initial values may be enclosed in parentheses and followed by “xn”, which means to replicate the values within parentheses n times (“repeated value”). The values within the parenthesis may have any of the above forms. For example, the following two are equivalent:
$THETA 2 2 2 2 (0.001,0.1,1000) (0.001,0.1,1000) (0.001,0.1,1000) (0.5 FIXED) (0.5 FIXED)$THETA (2)x4 (0.001,0.1,1000)x3 (0.5 FIXED)x2 UNINT(NM75)-
UNINTis used during the Optimal Design Step to identify a theta as uninteresting.UNINTmay be used anywhere thatFIXEDmay be used. label=value [FIXED](NM75)-
This is a compact method of defining an element of theta, specifying its initial estimate, and specifying a symbolic subscript for this element of
THETA. The symbolic subscript may be used forTHETAin abbreviated code, and will also identify this element ofTHETAin the NONMEM output. (Only the first 9 characters of the label will appear). If new$THETArecords change the ordering, the abbreviated code does not have to be changed. For example, suppose the third element ofTHETAthat is defined happens to be$THETA CL=(0.0,7.0) The abbreviated code can use this symbolic subscript instead of the numeric subscript, e.g.,TVCL=THETA(CL) The NONMEM report will describe the relationship, e.g.,LABELSFORTHETASTHETA(3)=THETA(CL) andTHETA(CL) rather than TH 3 will appear in the NONMEM report. It is also possible to specify the label using the$ABBR REPLACETHETA(CL)=THETA(3) control record but the NONMEM report will not identify the relationship and will not generate the symbolic labelTHETA(CL) in the report. For dynamic, or implicit mapping of labels, such as for various occasions, these still need to be done via the$ABBR REPLACErecord.$THETArecords must be placed ahead of any records that use the symbolic label. Therefore these records must be placed before$THETAI,$THETAR, and abbreviated code. NAMES(label …)value … (NM75)-
A compact way of defining one or more thetas with labels and initial values. For example
$THETA NAMES(V1,CL,Q,V2) (0.0,7.0) (0.0,7.0) (0.0,7.0) 7 NUMBERPOINTS=n-
During NONMEM’s search for an initial estimate, a number of points will be examined. This number will be automatically determined by NONMEM, or it can be specified with this option. May also be coded
NUMBERPTS,NUMPOINTS,NUMPTS. ABORT-
During the Initial Estimates step, NONMEM is to abort when
PREDsets the error return code to 1. (ThePREDerror return code n is set by the statement “EXITn [k]” in abbreviated code, or by the statementIERPRD=nin user-supplied code, or by PREDPP when it detects an error.) This is the default. NOABORT-
During the Initial Estimates step, NONMEM is simply to ignore values of the theta vector that result in
PREDerror return code 1. (Ordinarily the first value of the theta vector is never ignored.) These will not be feasible values for an initial estimate. NOABORTFIRST-
Same as
NOABORToption, but also applies to the first value of the theta vector that is tried. It cannot be shortened; all characters must be coded. May be used with theNOABORToption, in which case the stronger condition (NOABORTFIRST) takes precedence.
REFERENCES: Guide IV, section III.B.9
48 $THETAI
MEANING: Gives Instructions for Transforming Initial Thetas
CONTEXT: NM-TRAN Control Record
USAGE:
$THETAI Fortran statements
SAMPLE:
$THI
THETA(1:NTHETA)=LOG(THETAI(1:NTHETA))
THETAP(1:NTHP)=LOG(THETAPI(1:NTHP))
THETA=LOG(THETA)DISCUSSION:
The purpose of $THETAI is to transform the initial values in the $THETA and $THETAP records. The record name may also be coded as $THI.
In the above sample code, it is desired that the thetas by estimated within NONMEM in the log domain, but the user wants the convenience of inputting and outputting them in the natural domain, such as when performing linear MU referencing.
The $THETAI record will convert any initial thetas in a $THETA record, or thetas obtained from a chain file, but will not convert thetas from an MSF file. The variance to the theta priors will be appropriately converted when using $PRIOR NWPRI.
The assignment statements may be any Fortran 95 statements. They are copied unchanged to subroutine SUBROUTINE THETAISUB in FSUBS (also found in thetair.f90).
They may include array assigment statements specifying the whole arrays or sections of arrays.
If the initial estimate for an element of theta is transformed, so is the upper and lower bounds for that theta, if any.
Arguments of the subroutine are as follows.
THETAI-
Values of
THETAspecified on$THETArecords. Input. THETAPI-
Values of
THETAspecified on$THETAPrecords (or, if the informative names are not used, thetas corresponding to priors, if any). Input. THETA-
New values of
THETA. Output. THETAP-
New values of
THETA’s for priors. Output.
Other reserved variables that may be used are as follows:
NTHETA- Number of thetas to be estimated.
NTHP Number of theta priors.
NPROB IPROB- These can be tested in IF statements so that values may be assigned diffently for different problems.
If the range is not specified, NONMEM to supply the range (which is by default NTHETA+NTHP).
When appropriate, for reporting thetas, the inverse function should be supplied, e.g., with the samples above:
$THR
THETAR(1:NTHETA)=EXP(THETA(1:NTHETA))
THETAPR(1:NTHP)=EXP(THETAP(1:NTHP))or THETAR=EXP(THETA)
Note that the assignment occurs after the NONMEM control stream has been processed, so that errors in assignment of THETA’s are not found. E.g. $THI THETA=0. This will set all theta’s to 0, and there will be no specific error message from NONMEM, though most likely the run will fail.
If initial estimates of all or part of THETA are omitted, NONMEM performs a search for missing initial estimates as its first task. (These are printed on a separate page under the heading “INITIAL PARAMETER ESTIMATE”). This search occurs before the transformation by $THETAI.
Values of INITIAL ESTIMATE OF THETA in NONMEM output are those from the $THETA/$THETAP records. Values of THETA in the root.ext files are as set in $THI.
$THI may be used with $THR, but not necessarily.
Another example is rescaling thetas. E.g., suppose in CONTROL5
$THETA (.1,3,5) (.008,.08,.5) (.004,.04,.9)is replaced with
$THETAI
THETA=THETAI/10.
$THETA (1,30,50) (.08,.8,5) (.04,.4,9)The results will be identical, except for the values of INITIAL ESTIMATE OF THETA in the NONMEM report. The values in .ext will not be affected.
REFERENCES: Guide Introduction_7
49 $THETAP, $THETAPV
MEANING: Gives prior information for thetas
CONTEXT: NM-TRAN Control Record
USAGE:
$THETAP value1 [value2] [value3] … $THETAPV value1 [value2] [value3] …
SAMPLE:
; Prior information of THETAS (NTHP=4 of them) $THETAP (2.0 FIX) (2.0 FIX) (2.0 FIX) (2.0 FIX) ; Variance to prior information of THETAS (NTHPxNTHP=4x4 of them). $THETAPV BLOCK(4) 10000 FIX 0.00 10000 0.00 0.00 10000 0.00 0.00 0.0 10000
DISCUSSION:
These are called the informative forms of the $THETA record, for use with the NWPRI utility.
$THETAP gives prior information for elements of the THETA matrix. $THETAPV gives variance information for THETA priors.
The name of the record describes the kind of information it gives, rather than the structure of the information. E.g., in the example above, $THETAPV is implemented in FCON with an $OMEGA record because it is in general an array of values. These records may be located anywhere in the control stream. NM-TRAN inserts the corresponding records in the control stream in the correct order. When the informative forms are used, the options of $PRIOR NWPRI need not be specified. However, if options are listed in $PRIOR NWPRI, then these values are chosen over what is surmised from the informatively labeled theta/omega/sigma records. (See nwpri).
OPTIONS:
The option FIXED should be used. Other appropriate options are BLOCK and VALUES.
REFERENCES: Guide Introduction_7
50 $THETAR
MEANING: Gives Instructions for Transforming Final Thetas
CONTEXT: NM-TRAN Control Record
USAGE:
$THETAR Fortran statements
SAMPLE:
$THETAR
THETAR=EXP(THETA)Or $THETAR THETAR(1:NTHETA)=EXP(THETA(1:NTHETA)) THETAPR(1:NTHP)=EXP(THETAP(1:NTHP))
DISCUSSION:
The purpose of $THETAR is to transform the final theta values for the NONMEM report and additional output files. The record name may also be coded as $THR.
In the above sample code, it is assumed that $THETAI was used to transform thetas from the natural domain to the log domain for estimation within NONMEM, such as when performing linear MU referencing. $THETAR causes them to be output in the natural domain as well.
This affects the following data in the output report:
NPARAMETR
FINAL PARAMETER ESTIMATE for THETA.
FIRST ORDER STANDARD ERROR OF ESTIMATE
THETA - VECTOR OF FIXED EFFECTS PARAMETERS
FIRST ORDER COVARIANCE MATRIX OF ESTIMATE
THETA - VECTOR OF FIXED EFFECTS PARAMETERSContents of additional output files such as .coi and .cov and .cor are also affected.
The assignment statements may be any Fortran 95 statements. They are copied unchanged to subroutine SUBROUTINE THETARSUB in FSUBS (also found in thetair.f90).
They may include array assigment statements specifying the whole arrays or sections of arrays.
Arguments of the subroutine are as follows.
THETA- Final estimates of theta. Input.
THETAP-
Final estimates of thetas specified on
$THETAPrecords (or, if the informative names are not used, thetas corresponding to priors, if any). Input. THETAR-
New values of
THETA. Output THETAPR-
New values of
THETA’s for priors. Output.
Other reserved variables that may be used are as follows:
NTHETA- Number of thetas to be estimated.
NTHP Number of theta priors.
NPROB IPROB- These can be tested in IF statements so that values may be assigned diffently for different problems.
If the range is not specified, NONMEM to supply the range (which is by default NTHETA+NTHP).
$THR may be used with $THI, but not necessarily.
Another example is rescaling thetas. E.g., suppose that
$THETAI
THETA=THETAI/10.was used to rescale thetas on input.
Then $THETAR THETAR=THETA*10. can be used to report them in the original domain.
REFERENCES: Guide Introduction_7
51 $TOL
MEANING: Marks the beginning of abbreviated code for the TOL routine
CONTEXT: NM-TRAN Control Record
USAGE:
$TOLabbreviated code
DISCUSSION:
The $TOL record is used to specify compartment-specific NRD values. It is used with PREDPP’s general non-linear models (ADVAN6, ADVAN8, ADVAN9, ADVAN13, ADVAN14, ADVAN15, ADVAN16, ADVAN17, ADVAN18, and SS6 and SS9). NRD stands for “Number of Required Digits,” although the precise meaning depends on the particular ADVAN or SS routine that uses it.
$TOL cannot be present if the $SUBROUTINES record includes any of the corresponding options.
The following are equivalent:
$SUBROUTINES ... TOL=n
and
$SUBROUTINES ...
$TOL NRD=nLeft-hand quantities:
These are identical to the left-hand variables that may be set in subroutine TOL. If subscript “(I)” is omitted, it defaults to 1.
NRD(I)-
The number of digits that are required to be accurate in the computation of the drug amount in compartment I, i.e., the relative tolerance.
ADVAN9, 13, 16, 17, and 18 have the capability of using different values of NRD for different compartments. For compartments not specified, the tolerance of the last compartment specified will be used. However, all the otherADVANroutines requiring TOL take the relative tolerance to be the same for all compartments; NRD(I), I > 1, is ignored, and only NRD(1) is used. With NONMEM 7.4, NRD(0) is the relative tolerance for the Steady State computations. If NRD(0) is not specified, NRD(1) is used. The value of NRD(1) can also be specified using$SUBROUTINESoption TOL. The value of NRD(0) can also be specified using$SUBROUTINESoptionSSTOL. ANRD(I)(NM74)-
The absolute tolerance in the computation of the drug amount in compartment I. The default is 12 (that is, accuracy is 10**(-12)). Used by
ADVAN9, 13, 14, and 15, 16, 17, and 18 which have the capability of using different values ofANRDfor different compartments. For compartments not specified, the tolerance of the last compartment specified will be used.ANRD(0) is the absolute tolerance for the Steady State computations. IfANRD(0) is not specified,ANRD(1) is used. The value ofANRD(1) can also be specified using$SUBROUTINESoptionATOL. The value ofANRD(0) can also be specified using$SUBROUTINESoptionSSATOL. NRDC(I)(NM74)-
Same as NRD(I), but used for the
FOCE/LAPLACEcovariance step. Used withADVAN9, 13, 14, 15, 16, 17, and 18. If not set,NRDCdefaults to the value of NRD.NRDC(0) is used for Steady State computations during theFOCE/LAPLACEcovariance step. The value ofNRDC(1) can also be specified using$SUBROUTINESoptionTOLC. The value ofNRDC(0) can also be specified using$SUBROUTINESoptionSSTOLC. ANRDC(I)(NM74)-
Same as
ANRD(I), but used for theFOCE/LAPLACEcovariance step. Used withADVAN9, 13, 14, 15, 16, 17, 18. If not set,ANRDCdefaults to the value ofANRD.ANRDC(0) is used for Steady State computations during theFOCE/LAPLACEcovariance step. The value ofANRDC(1) can also be specified using$SUBROUTINESoptionATOLC. The value ofANRDC(0) can also be specified using$SUBROUTINESoptionSSATOLC.
Right-hand quantities:
Integers, e.g., NRD(1)=4
Forbidden Variable Names:
All other variables.
RECORD ORDER:
Follows $SUBROUTINES and $MODEL
REFERENCES: Guide IV, section V.C.3 , V.C.10; Guide VI, section VI.D , Figure 41
52 $TTDF (NM75)
MEANING: Specifies t-distribution degrees of freedom for theta
CONTEXT: NM-TRAN Control Record
USAGE:
$TTDF 0 (default) $TTDF [value … ] $TTDF [(value)[xn]] …
SAMPLE:
$TTDF (2.0)x2 (3.0)x2sets t-distribution degrees of freedom for thetas 1 and 2 to value of 2, and degrees of freedom for thetas 3 and 4 to value of 3.0.
DISCUSSION:
The ttdf is a separate record that allows the user to specify the tdistribution degrees of freedom for each theta. It can be used with $ESTIMATION METHOD=NUTS, and with $SIMULATION. By default $TTDF value is 0. These values will be used in estimation and simulation unless $EST TTDF or $SIM TTDF is set, respectively, which set the t degrees of freedom to a single TTDF value for all thetas for that step.
REFERENCES: Guide IV, section V.C.3 , V.C.10; Guide VI, section VI.D , Figure 41
53 $WARNINGS
MEANING: Control Display of NM-TRAN Warning, Data Warning and Data Error messages
CONTEXT: NM-TRAN Control Record
USAGE:
$WARNINGS [NONE] [n] [RESET | NORESET ]
[WARNINGMAXIMUM= [ NONE | n | (list)] ]
[DATAMAXIMUM= [ NONE | n | (list)] ]
[ERRORMAXIMUM=n ]SAMPLE:
$WARNING WMAX=1,EMAX=9999DISCUSSION:
Optional. Controls the display of NM-TRAN warning messages and data error messages in the current and all subsequent problems until another $WARNING record appears. May appear anywhere in the control stream following $SIZES, $SUPER (if present) and $PROBLEM records, but cannot affect the display of warning messages associated with the records that precede it.
OPTIONS:
NONE Suppress all warning messages.
n Sets WARNINGMAXIMUM=n, ERRORMAXIMUM=n, DATAMAXIMUM=n. May be 0,- in which case it is the same as NONE.
LIST Print a list of all possible warning messages. When this option
is present, the control stream must consist only of the single
record:
$WARNING LISTWARNINGMAXIMUM-
Refers to general (non-data) warning messages. May also be coded
WARNMAXIMUMand shorter substrings, e.g.,WMAX,WARN. May appear more than once, with cumulative effect.WARNINGMAXIMUM=NONESuppress warning messages.WARNINGMAXIMUM=nEach type of warning message will be displayed no more than n times (n >= 0). The default is 20.WARNINGMAXIMUM=(list) The list is a series of integers n1 , n2 , n3 … ( ni >= 0 ). ni gives the the maximum number for the ith type of warning message. NONE may coded for any ni if it is the last in the list. Sets the maximum number of messages for the ith and all higher-numbered messages to zero.Example: $WARNING WMAX=1 Sets the maximum for all non-data messages to 1. DATAMAXIMUM-
Refers to data warning messages. May also be coded
DMAXIMUMand shorter substrings, e.g.DMAX, DATA. May appear more than once, with cumulative effect. Forms and default are identical to those for theWARNINGMAXIMUMoption. ERRORMAXIMUM=n-
Refers to data error messages. It can also be coded
ERRMAXIMUMorEMAXIMUM, and shorter strings, e.g.,EMAX. Each type of data error message will be displayed no more than n times (n>=0). The default is 20. Data error messages can never be totally suppressed. With n=0 and n=1, NM-TRAN displays the first data error message and then terminates. Example:$WARNING EMAX=99999Sets the maximum number of data error messages displayed from 20 to a much higher value, so that NM-TRAN will not terminate until all data error conditions have been identified. RESET- All counts reset to 0 with each new problem. This is the default.
NORESET-
Counts of how many times a given message has been displayed are accumulated over problems. (A new
$WARNINGrecord always resets all counters, but they will not be automatically reset again with subsequent problems.)
A $WARNING record with no options re-establishes all default conditions as if no $WARNING records had been present.
REFERENCES: None
54 $ESTIMATION RECORD OPTIONS
MEANING: Instructions for the NONMEM Estimation Step
CONTEXT:
NM-TRAN Control Record
List of $ESTIMATION Record Options and Their Relevance to Various Methods
Classical methods are the First order method (METHOD=0 or METHOD=FO), the Conditional method (METHOD=1 or METHOD=FOCE) and the Hybrid method (METHOD=HYBRID). All other methods are EM (Expectation-Maximization) / Bayesian methods and are new to NONMEM 7.
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
-2LL X X X X X X X X
ATOL + X X X X X X X X
AUTO X X X X X X X
BAYES_PHI_STORE X X
BIONLY X X
BOOTDATA X X X X X X
CALPHA X X X X X X X
CENTERING X
CINTERVAL X X X X X X X
CITER/CNSAMP X X X X X X X
CLOCKSEED X X X X X X
CONDITIONAL X X X X X X X X
CONSTRAIN X X X X X X X
CTYPE (CTYPE 4) X X X X X X X
DERCONT X X X X
DF X X
DFS(CHAIN only)
EONLY X X X X
ETABARCHECK X
ETADER X X X X
ETASAMPLES X X X
ETASTYPE X X X X X X
EVALSHRINK X
FAST X X
FILE X X X X X X X X
FNLETA X X X X X X X X
FORMAT/DELIM X X X X X X X X
FPARAFILE X X X X X X X X
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
GRD X X X X X X X
GRDQ X X
GRID(Stieltjes) X
HYBRID X
IACCEPT X X X X X
IACCEPTL X X
IKAPPA X
INTERACTION X X X X X X X X
ISAMPEND X X X X
ISAMPLE X X X
ISAMPLE_M1 X X X
ISAMPLE_M1A X X X
ISAMPLE_M1B X X X
ISAMPLE_M2 X X X
ISAMPLE_M3 X X X
ISCALE_MAX X X X X X
ISCALE_MIN X X X X X
KAPPA X
KNUTHSUMOFF X X X X X X X X
LAPLACE X X * * X * * *
LEVCENTER(for $LEVEL) X X X X X X X X
LEVOBJTYPE(for $LEVEL) X X X X X X X X
LEVWT (for $LEVEL) X X X X X X X X
LIKE X X X X X X X X
LNTWOPI X X X X X X X X
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
MADAPT X
MAPCOV X X
MAPINTER X X
MAPITER X X
MAPITERS X X
MASSRESET *** X
MAXEVAL X
MCETA X X X X
MSFO X X X X X X X X
MUM X X X X X X X
NBURN X X X
NITER/NSAMPLE X X X X X X X
NOABORT X X X X X X X X
NOCOV** X X X X X X X
NOHABORT X X X X X X X X
NOLABEL X X X X X X X X
NONINFETA X
NOOMEGABOUNDTEST X
NOPRIOR X X X X X X X X
NOSIGMABOUNDTEST X
NOSLOW X X
NOSUB X X X X X X X X
NOTHETABOUNDTEST X
NOTITLE X X X X X X X X
NSIG/SIGDIGITS X X
NUMDER X X X X X X X X
NUMERICAL X X * * X * * *
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
NUTS_BASE X
NUTS_DELTA X
NUTS_EPARAM *** X
NUTS_GAMMA X
NUTS_INIT X
NUTS_MASS *** X
NUTS_MAXDEPTH X
NUTS_OPARAM *** X
NUTS_REG *** X
NUTS_SPARAM *** X
NUTS_STEPINTER X
NUTS_STEPITER X
NUTS_TERM X
NUTS_TEST X
NUTS_TRANSFORM X
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
OACCEPT X X
OLKJDF X
OLNTWOPI X X X
OMEGABOUNDTEST X
OMITTED X X X X X X X X
OPTMAP X X X X
ORDER X X X X X X X X
OSAMPLE_M1 X X
OSAMPLE_M2 X X
OSAMPLE_M3 X X
OVARF X
PACCEPT X X
PARAFILE X X X X X X X X
PARAFPRINT X X X X X X X X
PHITYPE X X X X X X X
POSTHOC X X X X X X X X
PREDICTION X X X X X X X X
PRINT X X X X X X X X
PRIORC X X X X X X X X
PSAMPLE_M1 X X
PSAMPLE_M2 X X
PSAMPLE_M3 X X
PSCALE_MAX X X
PSCALE_MIN X X
RANMETHOD=nSmP X X X X X X
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
REPEAT X
REPEAT1 X
REPEAT2 X
SADDLE_HESS X
SADDLE_RESET X
SEED X X X X X X
SIGL X X X X X X
SIGLO X X X X
SIGMABOUNDTEST X
SLKJDF X
SLOW X X
SORT X
STDOBJ X X
STIELTJES X
SVARF X
TBLN(CHAIN only)
THETABOUNDTEST X
THIN X X
TPU X
TTDF X
ZERO X
Option Classical ITS DIRECT IMP IMPMAP SAEM BAYES NUTS
+ ADVAN9,ADVAN13,ADVAN14,ADVAN15,ADVAN16,ADVAN17,ADVAN18May be needed to suppress error messages from NMTRAN or NONMEM. When last estimation step In prep for NUTS
(See $ESTIMATION).REFERENCES: Guide Introduction_7
55 FORMAT
MEANING: Specifies the format for table files and other files
CONTEXT: Options of NM-TRAN control file records
USAGE:
FORMAT and related options may be used with the following control records:
$TABLE [FORMAT=s1PE11.4(default)][LFORMAT=s][RFORMAT=s][IDFORMAT=s] Specifies the format for writing to the output table file.
$ESTIMATION [FORMAT=s1PE12.5 (default)] [DELIM=s] Specifies the format for writing to the raw output files.
$COVAR [FORMAT=s1PE12.5(default)] [DELIM=s] Specifies the format for writing to the raw output files
$CHAIN [FORMAT=s1PE12.5 (default)] [DELIM=s] Specifies the format for writing to the raw output files
$RCOV [FORMAT=s] [DELIM=s]Specifies the format for reading from the input file root.cov
$RCOVI [FORMAT=s] [DELIM=s]Specifies the format for reading from the input file root.coi
$ETAS [FORMAT=s] [DELIM=s]Specifies the format for reading from the input file root.eta
$PHIS [FORMAT=s] [DELIM=s]Specifies the format for reading from the input file root.phi
DISCUSSION:
FORMAT=s1PE12.5s defines the delimiter [,|s(pace)|t(ab)] followed by a Fortran format specification. The FORMAT option is case-insensitive.
Default for $TABLE: FORMAT=s1PE11.4 Default for $ESTIMATION, $COVAR, $CHAIN: With versions of NONMEM 7.5 and higher: FORMAT=s1PE12.5 With versions of NONMEM before 7.5: FORMAT=s1PE11.4
As with previous versions:
The first character defines the delimiter. Delimiters are not a part of the Fortran language. The delimiter is stripped from the Fortran format specification, and then used by NONMEM to modify the file being generated. The delimiter may be s for space, t for tab, or the comma. A comma produces a comma delimited file with aligned fields (so, padded with spaces). The delimiters may be upper or lower case.
New to NONMEM 7.5:There are two new delimiters. c for comma delimited file with no spaces, or q for comma delimited file with no spaces and double quotes around column names that have commas (such as “OMEGA(2,1)”). The list of delimiters is now as follows.
s means space t means tab , means comma c means comma, and spaces removed q means comma. Spaces removed, and quotes around entries that need them.
Two new formats are permitted, which provide both delimiter and number format: FORMAT=QCSV is equivalent to FORMAT=q1PG23.16 FORMAT=CSV is equivalent to FORMAT=c1PG23.16
May be terminated with line length (e.g., FORMAT=s1PE15.8:160), line length with continuation marker for the end of each line (e.g., FORMAT=s1PE15.8:160c), and continuation marker for start of each continued line (e.g. FORMAT=s1PE15.8:160cx). If “c” is the letter s, it stands for “space”. If “c” is the character &, (e.g., FORMAT=s1PE15.8:160&) and & is the last character on the line, it must be followed by “;” (e.g., FORMAT=s1PE15.8:160&;)
If the user-defined format is inappropriate for a particular number, then NONMEM uses the default format for that number.
Most of the numeric formats are similar to those of Fortran, but there are exceptions.
The syntax for the number format is Fortran based, as follows:
For E field: xPEw.d indicates
w total characters to be occupied by the number (including decimal point, sign, digits, E specifier, and 2 digit magnitude),
d digits to the right of the decimal point, and x digits to the left of the decimal point.
Examples:
E12.5: -0.12345E+02 2PE13.6: -12.12345E+02
If you are outputting numbers that are less than 1.0E-99, such as 1.2236E-102, NONMEM changes how the number is displayed. With format 1PE12.4, Fortran would delete the “E” and display the number as 1.2236-102. NONMEM retains the “E” and displays one fewer significant digit to make room for the extra digit in the exponent. The final digit is truncated (no rounding), as follows: 1PE12.4: 1.223E-102 To make room for a three digit exponent, you may set the format as follows:
xPEw.dEe
where e is the number of digits to be provided for the exponent. For example
1PE12.4E3: 1.2236E-102Another example of this format: 1PE12.4E3: -2.3456E+002
For F field: Fw.d
indicates
w total characters to be occupied by the number (including decimal point, sign and digits),
d digits to the right of the decimal point.
Examples:
F10.3: -0.012 F10.3: 234567.123
For G field: xPGw.d
For numbers >=0.1, will print an F field number if the value fits into w places showing d digits, otherwise will resort to xPEw.d format.
For numbers <0.1, will always use xPEw.d format.
IDFORMAT=s1PE11.4(NM75)-
This specifies the format for the
IDcolumn. By default theIDcolumn has the same format as specified byFORMAT. However, sometimes you wish theIDto appear as an integer, in which case, you may setIDFORMATas I. Do not include the delimiter. Some examples:IDFORMAT=I Integer value, left adjusted in the field.IDFORMAT=I6Integer value, right adjusted in the first 6 characters of the fieldIDFORMAT=F6.1Floating value, with single digit to the right of the decimal. If an improper format is given, it defaults to that ofFORMAT.
LFORMAT=s RFORMAT=sAn alternative format description to FORMAT is RFORMAT and LFORMAT.
(where R=real numbers) describes the full numeric record of a table, so that formats for specific columns may be specified.
LFORMAT (where L=label) specifies the format of the full label record of a table.
The formats must be enclosed in double quotes, and (), and have valid Fortran format specifiers. The RFORMAT and LFORMAT options can be repeated if the format specification is longer than 80 characters. Multiple RFORMAT and LFORMAT entries will be concatenated to form a single format record specification. For example,
LFORMAT="(4X,A4,4(',',4X,A8))"
RFORMAT="(F8.0,"
RFORMAT="4(',',1PE12.5))"Will result in the following formats submitted to a Fortran write statement: LFORMAT=(4X,A4,4(‘,’,4X,A8)) for the table’s label record, and RFORMAT=(F8.0,4(‘,’,1PE12.5)) For the table’s numeric records.
If RFORMAT and LFORMAT are given, then the FORMAT option will be ignored. By default, FORMAT, RFORMAT, LFORMAT specifications will be passed on to the next $TABLE record in a given problem unless new ones are given. To turn off an RFORMAT/LFORMAT specification in a subsequent table (and therefore use FORMAT instead), set
LFORMAT="NONE"
RFORMAT="NONE"Here is an example of $TABLE statements designated in a control stream file:
$TABLE ID TIME PRED RES WRES CPRED CWRES EPRED ERES EWRES NOAPPEND ONEHEADER
FILE=tabstuff.TAB NOPRINT,FORMAT=,1PE15.8$TABLE ID CL V1 Q V2 FIRSTONLY NOAPPEND NOPRINT FILE=tabstuff.PAR LFORMAT="(4X,A4,4(',',4X,A8))" RFORMAT="(F8.0," RFORMAT="4(',',1PE12.5))"
$TABLE ID ETA1 ETA2 ETA3 ETA4 FIRSTONLY NOAPPEND NOPRINT
FILE=tabstuff.ETA,FORMAT=";F12.4"
LFORMAT="NONE"
RFORMAT="NONE"There is no NMTRAN error checking on the RFORMAT and LFORMAT records, so the user must engage in trial and error to obtain a satisfactory table output (you should set MAXEVAL=0 or MAXEVAL=1 for the $EST step to do a quick check, so you don’t spend hours on estimation only to find the RFORMAT/LFORMAT were not appropriate). The $MSFO option of the $ESTIMATION record should be used to produce a Model Specification File. Such a file can be used via $MSFI record.
A word of caution. The FORMAT descriptor 1P, which means move the decimal point to the left by 1, will be in effect for all remaining FORMAT components. For example, in RFORMAT="(F8.0,37(',',1PE13.6),24(',',F7.2))"
the F field format that follows an E field format, in which 1P was used, will also have the decimal placed to the left, and a 1.00 would appear as a 10.00. To prevent this from occurring, revert to no decimal shift with 0P:
RFORMAT="(F8.0,37(',',1PE13.6),24(',',0PF7.2))"
See INTRODUCTION TO NONMEM 7, $EST: Format of Raw Output File
See INTRODUCTION TO NONMEM 7, IDFORMAT= I
See INTRODUCTION TO NONMEM 7, LFORMAT, RFORMATREFERENCES: Guide Introduction_7
56 INCLUDE
MEANING: Causes NM-TRAN to read control stream records from a different file.
CONTEXT: NM-TRAN Control Record
USAGE:
INCLUDE filename [ n ]
SAMPLE:
INCLUDE datadef
DISCUSSION:
This record causes NM-TRAN to read control stream records from a different file. The record must start with the characters INCLUDE or include. $INCLUDE and $include are also recognized.
OPTIONS:
- filename
- Name of the file to be read. Required. Filename may not contain embedded spaces. If it contains commas, semicolons, or parentheses, then it must be surrounded by single quotes ’ or double quotes “. Filename may also contain equal signs if it is enclosed in quotes.
n Optional. The number of copies of the file. Default is 1.
NMTRAN opens the named file and reads it to end-of-file. The contents of the file may be any portion of an NM-TRAN control stream, e.g., control records and/or abbreviated code. After reaching end-of-file, if the number of copies is greater than 1, NM-TRAN rewinds the file and re-reads it the specified number of times. After reaching end-offile on the final (or only) copy, NMTRAN resumes reading the original control stream after the include record.
There may be more than one include record anywhere in the control stream, but they may not be nested. That is, an included file may not contain include records.
If an error is detected in the NMTRAN input, the line number displayed is cumulative. The number of the line in the included file is added to the number of lines already read from the control stream and any previous include files, as if the included file(s) are physically part of the control stream.
EXAMPLE:
$PROBLEM model A with data set 3 include data3def include modela $THETA 1.3 4 $OMEGA .04 $SIGMA 1 $ESTIMATION
The file data3def contains the $INPUT and $DATA statements. The file modela contains the $SUBROUTINE statement, $PK block, and $ERROR block. one
Verbatim comment lines may be present in an included file. If the character that immediately follows the initial ” is !, this conforms to the FORTRAN 90 syntax for comment lines. The line is copied unchanged. If the character that immediately follows the initial ” is C or c or ” or , this conforms to the FORTRAN 77 syntax for comment lines. The line is copied unchanged, but C or c or ” or is replaced by !.
REFERENCES: None
57 ORDER_OPTION
MEANING: Instructions for the NONMEM Estimation Step
CONTEXT:
NM-TRAN Control Record
ORDER is an option of the $ESTIMATION record:
ORDER=xxxf-
The values of x may be T (Theta), S (Sigma), and O (Order). The value of f may be U (Upper) or L (Lower). Affects the way theta, omega, and sigma are displayed in the raw and additional output files. xxx gives the overall order, and f gives the order within
OMEGAandSIGMA. Affects the raw output file and all additional output files. The default isTSOL:THETA,SIGMA,OMEGAin Lower triangular form. Does not affect the NONMEM report file.
DISCUSION:
On the $OMEGA record, elements of Omega are given in lower triangular
order, e.g.,
$OMEGA BLOCK(3) OM11 OM21 OM22 OM31 O32 OM33
This can also be coded as
$OMEGA BLOCK(3)
OM11
OM21 OM22
OM31 O32 OM33The NONMEM report file is not consistent. The initial and final parameter estimates are printed in Lower triangular order, e.g., INITIAL ESTIMATE OF OMEGA: OM11 OM21 OM22 OM31 OM32 OM33
However, in the intermediate printout of the Estimation step, OMEGA and SIGMA are in Upper triangular order. This was not evident with previous version of NONMEM, because the PARAMTER values corresponding to OMEGA and SIGMA are displayed as unconstrained parameters (UCP), and these are not in a 1-1 mapping with the elements of OMEGA and SIGMA. But with NONMEM 7.2 and higher, the intermediate output of the Estimation step includes a line NPARAMETR, in which OMEGA and SIGMA are converted to their “natural” space. E.g., OM11 OM12 OM13 OM22 OM23 OM33 Because OMEGA is symmetric, this is the same as OM11 OM21 OM31 OM22 OM32 OM33
In the NONMEM report, upper triangular form is used for all of the “COVARIANCE MATRIX OF THE ESTIMATE”, “CORRELATION MATRIX OF ESTIMATE” and the “INVERSE COVARIANCE MATRIX OF ESTIMATE”. E.g., OM11 OM12 OM13 OM22 OM23 OM33
This is TOSU order.
Case 1. ORDER is not used (Default)-
The raw output file .ext and additional output files .cov, etc, are in a different order:
TSOL.SIGMAprecedesOMEGA. The order withinOMEGAis lower triangular, consistent with the Initial and final estimates ofOMEGA, but different than the intermediate output in the NONMEM report. The order of the last line of the “COVARIANCEMATRIXOFESTIMATE” in the NONMEM report differs from the order of the lines of the .cov file, and similarly for .cor and .coi. Case 2. ORDER=TOSU-
Each line of the raw output file .ext is in the same order as in the intermediate output portion of the NONMEM report. Also, each line of the .cov file is in the same order as the last line of the “
COVARIANCEMATRIXOFESTIMATE” in the NONMEM report, and similarly for .cor and .coi.
Note that the ORDER option does not affect the NONMEM report file, only the raw and additional output files. The SIGMA matrix always printed in the same order as OMEGA, and the ORDER option applies to it as well.
REFERENCES: Guide Introduction_7