Chapter 3. A first hour with nlmx: a guided tour
This chapter is a complete analysis, from data to a power curve, on a project that the program writes for you. You run fifteen commands on one demonstration project, read what each prints and writes, and see how the output of one step becomes the input of the next. Every command in the chapter was run with nlmx 4.2.1 on the project of Section 3.1; the output shown is pasted from those runs, and the whole chapter is one script that you can run yourself (Section 3.7).
The aim is not to teach each method. It is to give you a map of the program in your hands before the chapters that explain the methods: when Chapter 17 describes the structural-model screen, you will already have run one.
What you will learn
- how to generate the demonstration project and what it contains;
- how to read the verdict and the findings of the dataset and control-stream checks (
qc-data,qc-nm);- how to explore the data (
eda) and run a first non-compartmental analysis (nca);- how initial estimates (
autoinit), a structural screen (screen) and a fit (fit) lead to a base model, and how to read the listing of a fit;- how to test covariate effects (
cov), refit with the retained effects, draw the forest plot (forest) and check the model with a predictive check (vpc);- how to simulate the exposure of a study (
sims), estimate the sample size for a covariate effect (power), and ask Maxson to run a command for you.Prerequisites. Chapter 2 (a working installation that passes the smoke test of Section 2.4). The chapter assumes only that you know what a population PK model is; the terms it needs are explained where they first appear.
The sections of this chapter
| Section | Commands | Pages |
|---|---|---|
| 3.1 The demo project and what is in it | generate, inspect |
3 |
| 3.2 Check: qc-data and qc-nm | qc-data, qc-nm |
3 |
| 3.3 Explore: eda and nca | eda, nca |
3 |
| 3.4 Build: autoinit, screen, fit | autoinit, screen, fit |
5 |
| 3.5 Covariates and evaluation: cov, forest, vpc | cov, fit, forest, vpc |
4 |
| 3.6 Simulate and plan: sims, power | sims, power |
2 |
| 3.7 Ask Maxson (optional) and where to go next | ask; the whole tour as one script; the time budget |
2 |
How to follow the tour
- Type the commands. Each section lists the commands to run, in order. They assume your terminal is in the folder that
holds
demo/for Section 3.1 and insidedemo/afterwards, and thatnlmxruns (Section 2.4). - Read the output, not only the verdict. Most of the learning is in the lines between the first and the last.
- Times are from a two-core computer. Table 3.7.1 gives the run time of every step as recorded for this book. On a faster computer the times are shorter; no step in the tour takes longer than about 80 seconds, and all but two take under 10.
- Output paths and numbers. Folder names (
out_qcd,out_fit, …) are the ones the tour uses. Log files carry a ten-digit identifier that changes with every run (log_9621586118.txt), and the clock times in a transcript differ; everything else in the output reproduces. - Paste, shorten, compare. To keep the pages readable, long outputs are shortened with a line of dots (
…) where lines were left out. The files with the complete output are in the companion material (Section 3.7).