Documentation

E.2 Index by task: where to look when you want to do something

Tasks by stage of the analysis

What you will learn

  • Go from a task, said in your own words, to the page that answers it.
  • Know the order in which to read the pages of a task.
  • See which tasks cross chapters, and why.

Prerequisites: the overview.

99 tasks, in the order of a typical analysis. Each task lists one to four pages in the order to read them: the page that frames the task first, then the page that gives the rule, then the page that shows a number. Where a task has a chapter-level reference, it is the last entry.

The tasks are written as a reader would say them. They are not the titles of pages. That is why a task such as Diagnose a failed covariance step may lead to the covariance-step overview (18.25) and to a page about boundaries (18.30): the cause of a failure is theory, and the index sends you there on purpose.

How to use the table

  1. Find the section that matches the stage of your work.
  2. Pick the row whose wording is closest to your question.
  3. Open the first page. If it already answers the question, stop; if it points elsewhere, follow the links in the table, which are in reading order.
  4. When you need an option, a key or a file, finish at the chapter-level reference (the last entry of a row that has one).

Before you start

I want to… Open, in this order
Decide whether nlmx fits my work, and what it is not for 1.1 The problem nlmx solves: the fragmented pharmacometrics toolchain
1.4 What nlmx is not
See every command and the order they are used in 1.2 What is inside: the command map
Complete command index
Run a first hour on the demo project A first hour with nlmx: a guided tour
3.1 The demo project and what is in it
Learn the conventions: stems, run families, output folders 4.1 Projects, run families and stems
4.2 Output folders: what is written, never overwritten, and the log
Understand determinism and the seed 4.3 Determinism and the seed
9.1 The reproducibility contract
Read an exit code, an error, a warning 4.4 Exit codes, errors, warnings and notes
39.1 Reading an nlmx error
36.35 Exit codes and machine-readable completion
Obtain, license and upgrade the program 2.1 Obtaining the program: the release archive and versions
2.3 Licence and citation
2.5 Upgrading and keeping several versions
Find out what the web apps do The nlmx web apps

Data and control stream

I want to… Open, in this order
Read a NONMEM-style dataset correctly (delimiters, headers, $INPUT) 6.1 Delimiters, headers and quoting
6.2 $INPUT mapping, aliases and DROP
Code events: EVID, MDV, CMT, bolus, infusion, ADDL, II, SS 6.5 EVID, MDV and CMT
6.6 Bolus, infusion, RATE and dose compartment
6.7 ADDL, II, SS and resets
Choose a policy for missing covariates 6.10 Missing-covariate policies and carry-forward
Handle data below the limit of quantification 6.11 BLQ coding, flags and quantification limits
6.12 BLQ behavior by command
14.20 BLQ rules and sensitivity analysis
27.25 LLOQ censoring and percentile behavior
Filter rows or derive a column 6.13 Row and observation filters
6.14 Derived columns with mutate
Check a dataset before modelling, and read the verdicts 11.1 Why quality control precedes modeling
11.3 PASS, WARN, FAIL, COMMENT, N/A and verdicts
11.4 Your first qc-data run
Turn findings into a correction plan, and rerun 11.24 Checklist and findings tables
11.27 Triage, correction and rerun
Check a control stream, and see what the corrected copy changes 12.1 Your first qc-nm run
12.18 Correction philosophy and complete catalogue
12.24 Output bundle, files and unified diff
Know what the NONMEM files are and how nlmx finds them 5.1 Control-stream records and parser support
5.2 Results files and parameter labels
5.4 Artifact discovery and ambiguity
Write a NONMEM-format result 5.3 Writing NONMEM-format output
5.5 Round trips and worked conversions

Settings, outputs and reproducibility

I want to… Open, in this order
Use a settings file instead of options, and know which wins 7.1 Configuration layers and precedence
7.2 Command-line overrides and effective values
7.14 Option-to-setting mapping
Generate a template and see the effective values 7.5 Generating templates with --print-config
7.15 Settings-used files and rerun records
Find the output files of a command 10.17 Common output files by command
38.1 Output folders, identities, overwrite, and completion
Verify an output with checksums and manifests 7.10 Input manifests and SHA-256
7.11 Output checksums, logs and analysis hashes
10.16 Manifests, checksums and output contracts
Make a run reproducible across machines and thread counts 9.1 The reproducibility contract
9.12 Thread-count determinism
9.16 Floating-point and platform differences
Understand the HTML report, and the figure formats 10.3 Anatomy of the HTML report
10.6 The web, print and publication figure pipeline

Explore and summarise

I want to… Open, in this order
Draw the first plots of a dataset 13.1 Your first eda run
13.8 Selecting standard plots and tables
Plot or tabulate something no standard plot covers custom: reproducible plots and tables from any dataset
Create a derived column with mutate 13.4 Mutate grammar and missing results
13.5 Mutate recipes and unit conversions
Compute NCA exposure for each profile 15.1 Your first nca run
15.9 AUC method, partial areas, and extrapolation
Understand the trapezoid rules and the terminal slope 14.4 The linear trapezoid rule
14.6 Linear-up/log-down and linear-log methods
14.9 Terminal slope and log-linear regression
Judge dose proportionality or bioavailability 14.18 Dose normalisation and dose proportionality
14.19 Bioavailability and group-ratio methods
15.14 Dose-proportionality settings and output
15.16 Absolute bioavailability output
Report sparse or BLQ-heavy profiles 14.21 Sparse, destructive, and irregular sampling
15.30 Worked example: BLQ-heavy and sparse profiles

Build a model

I want to… Open, in this order
Get initial estimates from the data alone 16.1 Why initial estimates matter
16.2 Your first autoinit run
16.7 Three methods and the recommendation rule
Compare one-, two- and three-compartment structures 17.1 Why structural screening matters
17.2 Your first screen run
17.22 Recommendation rule, ties, and passed-over models
Use AIC, BIC, BICc or a likelihood-ratio test to choose 17.18 AIC, BIC, and corrected BICc
17.19 Likelihood-ratio tests and nesting
Know which ADVAN and TRANS routines are supported 8.6 ADVAN/TRANS support matrix
20.5 Supported ADVANs and transforms
Write a model as ODEs, and choose a solver 8.10 $DES models and solver selection
20.6 $DES and ODE models
Understand the objective function and the approximations 18.8 Marginal likelihood and OFV
18.15 Comparing FO, FOCE, FOCE-I, and Laplace

Fit, and read a fit

I want to… Open, in this order
Run a first fit 20.2 Your first fit
20.3 Input resolution: control stream, data, and run family
Read a fit listing before the estimates 20.25 Reading the fit listing without missing a warning
21.3 Files, report, and a fixed diagnostic review order
Choose between FOCE-I, Laplace and SAEM 18.15 Comparing FO, FOCE, FOCE-I, and Laplace
19.25 When to use SAEM instead of FOCE-I
Diagnose a fit that did not converge 20.31 Nonconvergence, boundary estimates, and local optima
20.30 Evaluate-only runs, iteration limits, and rescue
39.11 Exit code 9: numerical or learner failure
Diagnose a failed covariance step 20.32 Covariance failures, zero variances, and F_FLAG problems
18.25 Covariance-step overview
18.30 Boundaries and non-positive-definite matrices
Understand a retried fit and its attempt folders 20.35 Fit supplement and retry overview
20.36 Retryable versus non-retryable failures
20.40 Retry folders, the attempt ledger, and provenance
20.41 Reading retry outcomes and exit semantics
Read ETA and EPS shrinkage 21.17 ETA and EPS shrinkage
18.34 ETA and EPS shrinkage
Read residual and prediction plots 21.4 PRED, IPRED, and the two levels of fit
21.8 IWRES: individually weighted residuals
21.10 CWRES: conditional weighted residuals
Decide whether a model is adequate 21.29 From a diagnostic finding to a model decision
21.30 Complete diagnostic checklist and reporting template
Reproduce a NONMEM run 20.33 A defensible NONMEM-to-nlmx reproduction workflow
18.38 Comparing nlmx with NONMEM
40.16 Migrating a NONMEM analysis to nlmx

Covariates

I want to… Open, in this order
Choose a covariate engine 22.23 Method selection map
22.2 The complete covariate workflow
Understand frozen-score, stepwise and posterior-stability selection 22.24 Frozen score selection
22.25 Stepwise covariate modelling (SCM)
22.26 Posterior stability selection
See the covariate equation forms 22.12 The continuous power equation
22.14 The binary proportional equation
22.15 Categorical, grouped, and ordinal equations
Centre a covariate, or handle a time-varying one 22.16 Centering and reference values
22.20 Time-varying covariates
Run the stepwise engine Stepwise covariate selection with cov
Compare the engines on one problem cov, posterior, and resume: running and comparing the engines
Resume an interrupted covariate run 36.22 resume command reference
9.5 RNG versioning, checkpoints and resume
Draw a forest plot, and say what it means 26.3 The complete forest workflow
22.34 Clinical interpretation and forest plots
26.10 Covariance-based parameter uncertainty
Compute steady-state exposure for a forest plot 26.19 How steady-state simulation is computed
26.22 Cmax, Cmin, and Ctrough

Evaluate a model

I want to… Open, in this order
Run a VPC, and choose between the variants 27.3 The complete VPC workflow
27.12 Choosing VPC, pcVPC, pvcVPC, or NPC
Use a prediction-corrected VPC 27.8 Prediction-corrected VPC
27.9 pcVPC lower bound and log-transformed data
Stratify, bin, and set percentiles 27.13 Percentile definition and selection
27.16 Automatic binning
27.20 Categorical stratification
Handle BLQ in a predictive check 27.25 LLOQ censoring and percentile behavior
27.26 BLQ panel, NPC exclusions, and M3 simulation
Include parameter uncertainty in a VPC 27.27 Fixed-estimate versus parameter-uncertainty VPC
27.28 Covariance-based parameter draws and admissibility
Choose the number of replicates 27.30 Replicate count, Monte Carlo stability, and seed

Simulate and design a study

I want to… Open, in this order
Simulate a population and its exposure 28.3 The three-stage pipeline
28.5 Generated population or supplied design
28.7 Adult population generation
Simulate children by weight, or a mixed population 28.8 Pediatric CDC weight generation
28.9 Mixed populations
Define dose levels, weight bands, repeated doses 28.13 Fixed and weight-based dosing
28.14 Dose levels and treatment arms
28.15 Weight bands, limits, and dose rounding
28.16 Repeated dosing and steady state
Compute AUC, Cavg, peak and trough from simulated profiles 28.26 CMAX, TMAX, CMIN, TMIN, and CTROUGH
28.27 AUCtau and CAVG
Carry parameter uncertainty into a simulation 28.22 Parameter uncertainty from covariance or empirical rows
Generate a synthetic project with a known truth Chapter 29 — generate and simulate-study
Plan a sample size by hand 30.23 Wald power and sample-size scaling
30.24 Worked hand calculation: 44 subjects
Plan a sample size with the command 31.1 Quick start: a first power run
31.2 Choosing sse, fim, or both
31.8 Sample sizes and bracketing the crossing
Understand the stochastic simulation and estimation route 30.7 Stochastic simulation and estimation
30.10 Re-estimation inside every replicate
31.20 SSE from virtual trial to decision
Understand Fisher information and its limits 30.16 Fisher information intuition
30.19 From subject information to population information
31.32 Reading FIM parameter, power, and matrix results

Exposure–response

I want to… Open, in this order
Choose an exposure–response model Chapter 32 — Exposure-response concepts and models
33.36 Implementation architecture and numerical methods
Run a first analysis, and set the grid 33.1 The command map and your first run
33.3 Exposure, response, type, and the analysis grid
Compare with placebo 33.4 Dose groups, placebo, and exposure eligibility
33.29 Worked example: placebo correction and adjustment
Read the effect between exposure groups 33.10 Effect contrasts and predictions at useful exposures
Choose between the endpoint types 33.13 Binary, ordinal, count, TTE, and longitudinal controls
33.30 Worked example: RESP and objective response
33.31 Worked example: ordered adverse-event grades
33.32 Worked example: Poisson and negative binomial rates
33.33 Worked example: PFS with KM, log-rank, and Cox

The assistant (Maxson)

I want to… Open, in this order
Understand what the assistant may and may not do 34.1 The Maxson trust model
34.17 What Maxson cannot establish
Make a first request 35.6 Starting a first request and reading the greeting
35.8 Confirmations, --yes, and reviewing the exact proposal
Read the audit trail of a session 34.14 Transcript, JSONL events, commands, and settings history
34.13 Session-folder structure and evidence ownership
Harden the settings for a regulated environment 35.14 Every [policy] and max-values setting
35.16 A regulated-site baseline configuration

Report and release

I want to… Open, in this order
Turn Markdown into Word, PDF and HTML 36A.2 Quick start and the three input modes
36A.15 Choosing Markdown, Word, PDF, and HTML outputs
Typeset an equation in a report 36A.10 Pharmacometric equations in four formats
Check a report before it leaves 36A.22 Visual QA, accessibility, troubleshooting, and exit codes
41.38 Case 9: one Markdown file, three ways in, and what "done" means
Cite an nlmx result file in a report 36A.4 Reading and citing nlmx result files

Look something up

I want to… Open, in this order
A short answer to a frequently asked question Appendix F — Frequently asked questions
Complete FAQ reference: every question, by page and by command
An option of a command 36.1 Command grammar and option anatomy
36.2 Finding help and the authoritative interface
A key of a settings file 37.1 How to read this settings reference
Complete settings reference
An output file and its columns 38.1 Output folders, identities, overwrite, and completion
Complete output-file reference
An error message 39.1 Reading an nlmx error
39.2 The first five minutes: a safe triage
Complete error, warning, and troubleshooting reference
Report a problem that can be reproduced 39.24 Reporting a problem that can be reproduced
How nlmx differs from NONMEM, PsN, PopED and Monolix 40.1 How to read a cross-software comparison
Complete cross-software comparison and known-limit reference
Migrate an analysis from another tool 40.16 Migrating a NONMEM analysis to nlmx
40.17 Migrating a PsN workflow to nlmx
40.18 Migrating a PopED design evaluation
40.19 Migrating a Monolix project
What validation covers Chapter 42 — Validation and testing
Complete validation and testing reference
A worked case Chapter 41 — Worked case studies
Complete case-study reference
A mathematical result Appendix A — Mathematical background
Complete mathematical reference
A term Appendix B — Glossary
Complete glossary reference
A paper behind a method Appendix C — Bibliography
Complete bibliography reference
How the program is built Appendix D — Developer guide
Complete developer reference

Four rows worth reading closely

Tasks that cross chapters

Several tasks need pages from three or more chapters, which is why the table gives an order and not a single page:

Task Why it crosses chapters
Handle data below the limit the dataset rule (Chapter 6), the NCA rule (Chapter 14), the predictive-check rule (Chapter 27) differ by command
Reproduce a NONMEM run the fit (Chapter 20), the likelihood (Chapter 18) and the differences (Chapter 40)
Read ETA shrinkage the definition (Chapter 18) and the diagnostic (Chapter 21)
Plan a study the theory (Chapter 30), the command (Chapter 31) and the worked cases (Chapter 41)

Review checklist

  • Can you find, from the task, the page that frames it, the page that gives the rule and the reference?
  • Do you open the pages of a row in the order the table gives?
  • For a task that crosses chapters, do you know why the order is not alphabetical?

See the previous page, the next page, the overview, and the complete index reference.