Home| Installation| Control Streams| Autocovariate| Bootstrap| Randomization Test | Files | References
The Commands page provides a brief description of all key WFN commands.
Nick Holford, n.holford@auckland.ac.nz, Department of
Pharmacology & Clinical Pharmacology,
Last updated 1 June 2009 [Note: The latest changes to WFN are recorded in wfndown.htm]
WFN is a set of DOS batch command files and awk scripts to help NONMEM users be more productive. The first version of WFN (Wheels for NONMEM) was written in 1989 at UC San Francisco. The unix csh and awk scripts evolved and were eventually ported to DOS in order to support NONMEM as part of the RIDO (Right Dose First Time) project.
Please see license.txt and gpl.txt. WFN is distributed under the terms of the GNU General Public License. It uses gawk.exe which is also distributed under the same terms.
A key concept in WFN is the idea of a run. A run is based on an NM-TRAN control stream. The control stream filename (without its extension) defines the runname. NONMEM is invoked using the nmgo batch command file with the runname as its essential argument e.g. using the theopd.ctl control stream file:
nmgo theopd
You can execute nmgo from any directory you wish but the NMTRAN control stream file (e.g. theopd.ctl) must be in the current directory.
Do not attempt to use a path to point to a control stream in another directory. Long file names are supported but cannot contain embedded blank characters.
Very deeply nested sub-directory structures e.g. 8 levels below the root may not work with older compilers e.g. Watcom 10. Long file names may not work when used with older compilers e.g. Watcom 10 or on a network drive (for reasons I cannot understand). The Open Watcom compiler does not have this problem.
nmgo creates a run directory for working files and the final run results, processes the control stream then invokes NM-TRAN, compiles, links and executes NONMEM. The NONMEM output listing is then processed to provide a run summary of the results.
Typical use of NONMEM involves several runs and comparison of the objective function value (obj). The nmobj command provides a simple table of runnames and obj values sorted in ascending obj order to make it easy to compare the overall goodness of fit of each run. The output of nmobj is stored in a file nmobj.txt.
Additional details can be obtained using the nmlst command which presents the summaries for all the runs in the same order as nmobj. These details are stored in a file nmlst.txt. Similar information is presented one line per run using the nmbt command. Results are stored in nmmbt.txt in tab delimited format.
The results of the theopd run are presented in summary form. The first 3 lines are column headings that display the parameter names aligned with the estimates underneath. The 4th line contains the run name (and nmout extension) followed by the objective function value, estimation method, number of function evaluations, significant digits, number of subjects, and number of observations. Finally the NONMEM version number and PREDPP version number (if used) are displayed.
Note that the ETASD and EPSSD are used to indicate that the square root of the OMEGA and SIGMA values is displayed. In this example a proportional model has been used for the variability of each parameter so that an ETASD for E0 of 0.0986408 can be interpreted as an approximate CV of 9.9%. Empirical Bayes estimate diagnostics test if the ETA average is 0 (ETAPval) and the percent shrinkage of ETA (ETAshr%) and EPS (EPSshr%). The relative standard error of the random effect estimates (OMEGA and SIGMA) are expressed relative to ETASD and EPSD. The format can be modified using NMRAW.
THETA: POP_E0 POP_EMAX POP_EC50
ETA: PPV_E0 PPV_EMAX PPV_EC50
ERR: RUV_SD
theopd_FOCE.lst 5801.321 FOCE eval=275 sig=+4.2 sub=153 obs=574 VIIBETA5.5b2
THETA = 139 191 8.8
ETASD = 0.0986408 0.267769
1.46287
ETAPval = 0.346
0.00013 0.605
ETAshr% = 81
55.8 35.6
EPSshr% = 9.25
EPSSD = 81.0555
THETA:se%
= 7.0 12.7 27.5
ETASD:se%
= 172.1 21.4 17.4
EPSSD:se%
= 5.4
MINIMIZATION
SUCCESSFUL
Ttot 0:2.93 Test 0:1.56 Tcov 0:0.86 Ttcl
0:0.51
The last line of
the run summary shows the total execution time (Ttot), NONMEM estimation time
(Test), covariance time (Tcov) and the time for the control stream translation,
compile and link part of the run (Tcl). Times are formatted as minutes:seconds.
The run directory is used as a working directory for NM-TRAN and NONMEM temporary files. These files are deleted at the end of a run unless the DOS environment variable nmclean is set to "n". The run directory name is made up from the runname and an extension which by default reflects the compiler e.g. theopd.df would be the run directory created if the df compiler system is used.
The run results
files saved at the end of each run are:
|
Runname.lst |
NONMEM output listing (see nmout) |
|
Runname.smy |
Run summary (one line per problem or sub-problem) |
|
Runname.smr |
Run summary with control stream appended |
|
Runname.log |
A log file which may contain information about errors if a problem arises |
|
Runname.ctl |
The control stream used by NM-TRAN (see nmctl) |
|
Runname.fit |
Table file if $TABLE NOPRINT is specified (see nmtbl) |
|
Runname.msf |
MSFO file if MSFO is specified |
Home| Installation| Control Streams| Autocovariate| Bootstrap| Randomization Test | Files | References