Visual predictive check after a fit: simulate the dataset from the control stream and its estimates (.ext), then write a VPC, pcVPC, pvcVPC and/or NPC with stratification, binning, optional parameter uncertainty, plots and tables. Optional settings file: -c nlmx.vpc (`nlmx vpc --print-config` prints the template) Usage: nlmx vpc [OPTIONS] [CONTROL_STREAM] Arguments: [CONTROL_STREAM] Control stream (.ctl/.mod) of the fitted model; same as --ctl Options: -h, --help Print help Method: --threads Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value Input selection: --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 .ext and .cov --files Explicit [files] manifest (.txt); paths resolve against the manifest location --ctl Control stream (.ctl/.mod) --ctls ... 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 (_fit next to its control stream, or / with --output) and log --ext Final estimates (.ext); sims: the parameter values of --estimates final; power: the final estimates (default: those of the control stream) --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 Parameter correlation matrix (.cor) --data Analysis dataset (overrides $DATA); sims: simulate this dataset instead of generating one --lst NONMEM listing (.lst) --phi Individual estimates (.phi) --table Table file with ID and ETA columns (.tab), used when no .phi is available --run-stem Disambiguate a directory containing several runs --recursive Scan --model-dir recursively (still rejects ambiguity) Core: -c, --config 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 directory --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: --seed Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML) Logging and output: --suppress-console <0|1> 0 (default) prints progress to the terminal; 1 silences it (the log is still written) --log-file Write the transcript here instead of log_.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 Output format for `schema`: txt | toml | json | json-schema [default: txt] Generate and simulation study: --model generate, simulate-study: preset project: analytic (default) | ode | iov-blq --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 generate: group names, comma separated, e.g. "Low,Mid,High" (default Group 1, Group 2, …) --doses generate: dose (amount) of each group, comma separated, e.g. 50,100,200 (one value: every group; default 100) --subjects-per-group generate: subjects in each group, one value for all or one per group, e.g. 20 or 20,20,40 Fit: --cov-step fit, screen: run the covariance step even without $COVARIANCE --stem fit: file stem for the NONMEM-format outputs (default: the control stream's stem) VPC: --results-dir vpc: folder holding the estimation outputs (.ext, .cov) when they are not beside the control stream: .ext there, or its only .ext file --filter 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 vpc: type of check: vpc | pcvpc (default) | pvcvpc | npc --samples vpc: number of simulated replicates of the dataset (default 1000) --idv vpc: independent variable on the x axis: a data column, TAD or PRED (default TIME) --stratify 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 vpc: quantile groups for a continuous stratification column (default 2) --bins 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 vpc: binning method: auto | count | width | edges | nominal (with --bins N or edges) --min-bin-obs vpc: merge bins with fewer observations than this (default 10; not for explicit edges) --pi vpc: percentiles shown, e.g. 5,50,95 (default), or one interval width such as 90 --ci vpc: confidence level (%) of the simulated-percentile bands (default 95) er: confidence level (%) of intervals and bands (default 95) --npc-pi vpc: NPC prediction intervals (%), default 0,20,40,50,60,80,90,95 --lloq 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 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 vpc, fit, autoinit, screen: legend position on the charts: bottom (default) | top --x-title vpc: x-axis title (default: the --idv name) --y-title 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 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 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 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): --log-y vpc, fit: same as --y-scale log --x-scale vpc, fit, autoinit: x axis of the plots: linear (default) | log (semi-log; values ≤ 0 are not drawn) --y-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 /plots (PNG, theme_classic style) --plot-width plots: figure width in --plot-units (default 7 in) --plot-height plots: figure height in --plot-units (default 5 in) --plot-units plots: units of width and height: in (default) | cm | mm | px --plot-dpi plots: resolution in dots per inch (default 300) --plot-base-size plots: base font size in points (default 11, as ggplot2) --plot-format plots: png (default) | svg | both --plot-colors 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 This lists the options of `nlmx vpc` only (446 options of other commands are not shown). `nlmx --help` lists every option of every command.