Documentation

36.8 vpc command reference

vpc command reference

This chapter is a lookup reference for nlmx 4.16.1. Option tables are generated from the installed release executable. Read an option in the context of the command page: nlmx uses a global parser, but an accepted option can be irrelevant to a command unless its help text names that command or the command's method chapter defines the behavior.

The safe sequence is: identify the installed version, open that command's help, freeze input/settings/output paths, run into a new or empty output directory, inspect both the process status and the command-native verdict, and retain the log/resolved settings/checksums. A command line is reproducible only when its referenced files and software version are also frozen.

Synopsis

nlmx vpc [OPTIONS] [CONTROL_STREAM]

Required context. A fitted control stream and estimates, normally discovered beside it or supplied with --ext; optionally a covariance matrix or parameter file for uncertainty.

What it does. Simulates the observed design and produces VPC, prediction-corrected VPC, variability-corrected VPC, and/or numerical predictive checks with bins and strata.

Principal outputs. VPC tables, simulation summaries, bin diagnostics, plots (PNG/SVG as configured), HTML report, resolved settings, log, and checksums.

Positional arguments shown by installed help

[CONTROL_STREAM]
          Control stream (.ctl/.mod) of the fitted model; same as --ctl

Practical invocations

  1. nlmx vpc models/run101.ctl --samples 1000 -o run101_vpc
  2. nlmx vpc -c study.vpc --param-uncertainty

Start with installed help and, when available, generate the complete settings template before entering study choices. Run into a new or empty output folder. After completion, review the command's native summary/verdict, warnings, logs, resolved settings, and checksum manifest—not only the console's final line.

Complete installed option reference

The following 80 options are parsed directly from nlmx 4.16.1 vpc --help. The unmodified txthelp snapshot and its SHA-256 are preserved in the jsonhelp inventory. Shared descriptions sometimes mention several commands; apply only the clause naming vpc unless its method chapter specifies otherwise.

Options

Option Installed description
-h, --help Print help

Method

Option Installed description
--threads <THREADS> Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value

Input selection

Option Installed description
--model-dir <MODEL_DIR> Directory holding one NONMEM run family, matched on a common stem (e.g. run101.ctl/.ext/.cov); power: the folder with the run's <stem>.ext and <stem>.cov
--files <MANIFEST.txt> Explicit [files] manifest (.txt); paths resolve against the manifest location
--ctl <CTL> Control stream (.ctl/.mod)
--ctls <PATTERN>... fit: run fit once for every control stream matching the patterns (file names, folders, or wildcards * ? and ** such as *.ctl or ./xyz/*.mod), each with all the other options (--retry, --approximation, ...); every run has its own output folder (<name>_fit next to its control stream, or <output>/<name> with --output) and log
--ext <EXT> Final estimates (.ext); sims: the parameter values of --estimates final; power: the final estimates (default: those of the control stream)
--cov <COV> Parameter covariance matrix (.cov); sims: with it every simulation of the study uses a new parameter set (parameter uncertainty); power: needed for --uncertainty
--cor <COR> Parameter correlation matrix (.cor)
--data <DATA> Analysis dataset (overrides $DATA); sims: simulate this dataset instead of generating one
--lst <LST> NONMEM listing (.lst)
--phi <PHI> Individual estimates (.phi)
--table <TABLE> Table file with ID and ETA columns (.tab), used when no .phi is available
--run-stem <RUN_STEM> Disambiguate a directory containing several runs
--recursive Scan --model-dir recursively (still rejects ambiguity)

Core

Option Installed description
-c, --config <FILE> Settings file of the command (TOML syntax), with the command's extension: .covar (cov, posterior, inspect, validate, fit), .qcd, .qcn, .eda, .nca, .init, .screen, .vpc, .forest, .sims, .er, .power, .gen, .ask
-o, --output <OUTPUT> Output directory
--run-dir <RUN_DIR> Existing run directory, for resume
--overwrite Allow writing into a non-empty output directory
--dry-run Run the validation pipeline instead of the full analysis
--no-checkpoint Do not write replicate checkpoints (posterior engine)

Shared numerics

Option Installed description
--seed <SEED> Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML)

Logging and output

Option Installed description
--suppress-console <0|1> 0 (default) prints progress to the terminal; 1 silences it (the log is still written)
--log-file <LOG_FILE> Write the transcript here instead of log_<id>.txt
--no-color Disable ANSI colour
--license Print the license (CC BY-ND 4.0), the third-party components, how long this version may be used and how to contact the author, and stop
-v, --verbose... Increase verbosity (repeatable: info -> debug -> trace)
-q, --quiet Errors only on the terminal (the log file is unaffected)
--keep-subject-ids Do not hash subject identifiers in outputs
--format <FORMAT> Output format for schema: txt | toml | json | json-schema [default: txt]

Generate and simulation study

Option Installed description
--model <EXAMPLE_MODEL> generate, simulate-study: preset project: analytic (default) | ode | iov-blq
--structure <STRUCTURE> generate: model structure, e.g. 1cmt-oral (default), 2cmt-iv, 3cmt-infusion, 2cmt-oral-lag; parts may also be given with --compartments, --route and --lag
--group-names <LIST> generate: group names, comma separated, e.g. "Low,Mid,High" (default Group 1, Group 2, …)
--doses <LIST> generate: dose (amount) of each group, comma separated, e.g. 50,100,200 (one value: every group; default 100)
--subjects-per-group <LIST> generate: subjects in each group, one value for all or one per group, e.g. 20 or 20,20,40

Fit

Option Installed description
--cov-step fit, screen: run the covariance step even without $COVARIANCE
--stem <STEM> fit: file stem for the NONMEM-format outputs (default: the control stream's stem)

VPC

Option Installed description
--results-dir <DIR> vpc: folder holding the estimation outputs (.ext, .cov) when they are not beside the control stream: <stem>.ext there, or its only .ext file
--filter <EXPR> R-style condition on data columns. vpc: keep the subjects matching it (at each subject's first record), e.g. "STU > 3001" or "GROUP == 1 & WT < 70 | HT > 154". autoinit, screen: keep the rows matching it (as NONMEM IGNORE/ACCEPT, doses and observations), with text values in quotes, e.g. 'C != "XYZ"' or 'SITE %in% c("A","B")'; an empty cell is "" er: keep the rows matching it
--vpc-type <TYPE> vpc: type of check: vpc | pcvpc (default) | pvcvpc | npc
--samples <N> vpc: number of simulated replicates of the dataset (default 1000)
--idv <COLUMN> vpc: independent variable on the x axis: a data column, TAD or PRED (default TIME)
--stratify <COLUMNS> vpc: stratify on data column(s), comma separated (e.g. SEX or DOSE,SEX) er: columns whose levels get their own panels and summaries
--stratify-groups <N> vpc: quantile groups for a continuous stratification column (default 2)
--bins <SPEC> vpc: binning: auto (default) | nominal | N (N bins of equal count) | edges such as 0,1,2,4,8,24 er: exposure groups of the active subjects: N quantiles (default 4) or edges such as 0,10,50
--bin-method <METHOD> vpc: binning method: auto | count | width | edges | nominal (with --bins N or edges)
--min-bin-obs <N> vpc: merge bins with fewer observations than this (default 10; not for explicit edges)
--pi <LIST> vpc: percentiles shown, e.g. 5,50,95 (default), or one interval width such as 90
--ci <PCT> vpc: confidence level (%) of the simulated-percentile bands (default 95) er: confidence level (%) of intervals and bands (default 95)
--npc-pi <LIST> vpc: NPC prediction intervals (%), default 0,20,40,50,60,80,90,95
--lloq <VALUE|COLUMN> vpc, autoinit, screen: lower limit of quantification (vpc: a number or a data column; autoinit, screen: a number); values below it are censored / left out
--blq-flag <COLUMN> vpc: data column flagging observed values as BLQ (non-zero), used with --lloq
--hide-points vpc: do not draw the observations behind the bands
--hide-outside vpc: do not ring the observed percentiles that fall outside their simulated CI
--legend-position <POS> vpc, fit, autoinit, screen: legend position on the charts: bottom (default) | top
--x-title <TEXT> vpc: x-axis title (default: the --idv name)
--y-title <TEXT> vpc: y-axis title of the VPC (default: DV, or prediction-corrected DV)
--no-caption vpc, fit, autoinit, screen: no grey caption (check, observations, date) under the charts
--pc-log vpc: DV on log scale: additive prediction correction (pcY = Y + PREDbin - PRED)
--pc-lower-bound <LB> vpc: lower bound lb of the prediction correction (default 0)
--pvc vpc: add the variability correction (pvcVPC)
--param-uncertainty vpc: simulate with parameter uncertainty: a new THETA/OMEGA/SIGMA draw from the .cov for every replicate
--param-file <FILE> vpc: parameter sets (CSV with THETA1.., OMEGA(1,1).., SIGMA(1,1).. columns, e.g. bootstrap results) used one per replicate; implies --param-uncertainty
--write-sims vpc: write every simulated observation to vpc_simulations.csv (large)
--no-plots vpc: tables only; no HTML report or report SVG files
--no-svg vpc, fit, autoinit, screen: write no SVG files at all (neither svg/ nor plots/svg/); PNG plots and the HTML report are unaffected
--print-config <FILE> write the command's annotated settings template to FILE (with the command's extension, e.g. nlmx.eda, nlmx.vpc) and exit

Plots (vpc, fit, autoinit, screen, nca)

Option Installed description
--log-y vpc, fit: same as --y-scale log
--x-scale <SCALE> vpc, fit, autoinit: x axis of the plots: linear (default) | log (semi-log; values ≤ 0 are not drawn)
--y-scale <SCALE> vpc, fit, autoinit: y axis of the plots: linear (default) | log (semi-log; fit: the DV plots only)
--plots vpc, fit, autoinit, screen: also write publication plots to <output>/plots (PNG, theme_classic style)
--plot-width <W> plots: figure width in --plot-units (default 7 in)
--plot-height <H> plots: figure height in --plot-units (default 5 in)
--plot-units <UNITS> plots: units of width and height: in (default) | cm | mm | px
--plot-dpi <DPI> plots: resolution in dots per inch (default 300)
--plot-base-size <PT> plots: base font size in points (default 11, as ggplot2)
--plot-format <FORMAT> plots: png (default) | svg | both
--plot-colors <LIST> plots: colours as NAME=COLOUR pairs, e.g. median=#E41A1C,outer=#377EB8,points=grey (names: median, outer, observed, points, outside, reference)
--plot-no-title plots: no chart title (for a figure caption)
--plot-no-legend plots: no legend

Interpretation and common failure

Preserve the analysis population, BLQ rule, DVID, stratification, prediction-correction denominator, binning, seed, and sample count. Sparse bins can make attractive plots unstable.

The detailed method and examples are in the relevant book chapter. Common nonzero process classes are documented on 36.35. A process exit of zero still requires command-native scientific and numerical review.

Minimal handoff record

Record the version, exact command and working directory, input/settings hashes, selected options and defaults, output path, process exit, native verdict or convergence state, warnings/exclusions, principal results with uncertainty, checksum verification, and reviewer disposition.

See the previous page, next page, and complete command index.