Documentation

Complete vpc command and settings index

This page lists every nlmx 4.14.3 option and settings-file control that materially changes vpc. Shared CLI options that belong to other commands are identified at the end so they are not mistaken for VPC features.

VPC settings and precedence

Minimal and fully specified commands

# Discover fitted results beside the control stream or in <stem>_fit
nlmx vpc run101.ctl

# Resolve fitted outputs explicitly and write publication figures
nlmx vpc run101.ctl --results-dir run101_fit `
  --samples 1000 --seed 20240611 --plots --plot-format both `
  --output run101_vpc

# Stratified, parameter-uncertainty pcVPC with an LLOQ
nlmx vpc run101.ctl --results-dir run101_fit `
  --vpc-type pcvpc --stratify SEX,DOSE --bins auto `
  --lloq LLOQ --blq-flag BLQ --param-uncertainty `
  --samples 2000 --seed 98117 --plots -o run101_vpc_stratified

# Annotated template and exact rerun settings
nlmx vpc --print-config nlmx.vpc
nlmx vpc -c nlmx.vpc

Fitted-model and data inputs

Option or setting Meaning and default resolution
positional CONTROL_STREAM Fitted .ctl/.mod; same role as --ctl.
--ctl FILE Explicit fitted control stream. It can instead be supplied in [inputs].control_stream.
--results-dir DIR Folder containing fitted <stem>.ext and optional <stem>.cov; an unambiguous only EXT can be used.
--ext FILE Explicit final-estimate override. A VPC requires final estimates.
--data FILE Dataset override instead of $DATA.
--cov FILE Parameter covariance source when parameter uncertainty is enabled.
--model-dir DIR, --run-stem NAME, --recursive, --files MANIFEST Shared run-family discovery controls. Reject ambiguity rather than selecting arbitrarily.
--stem NAME Stem used to find fitted artifacts and name the default <stem>_vpc output.

The shared parser also displays COR, listing, PHI, and table inputs. VPC simulation itself is driven by the control stream, final estimates, dataset, and optional covariance/parameter file; do not imply that unused artifacts change simulation.

Check type, simulations, and random streams

Option Values/default Effect
--vpc-type TYPE vpc, pcvpc (default), pvcvpc, npc Selects the primary check. NPC is also calculated with every non-NPC run.
--samples N default 1000, minimum 20 Number of replicated datasets.
--seed N default 20240611 Master seed for replicate/subject streams and parameter draws.
--threads N all cores Parallelism. Results are designed to be thread-count independent.
--write-sims off Writes every simulated observation to vpc_simulations.csv.

Simulation runs model code with ICALL=4. Approximation, fit iteration, covariance-step, and fit-retry controls do not refit the model during VPC.

Population, x variable, filters, and strata

Option Values/default Effect
--idv COLUMN TIME default; data item, TAD, or PRED X variable for bins and VPC/BLQ panels. TAD is computed if absent.
--filter EXPR none R-style expression evaluated at each subject’s first record; keeps/drops the whole subject.
--stratify COLS none Comma-separated record-level stratification columns.
--stratify-groups N 2 Quantile groups for continuous stratification columns.

Settings-only [vpc].max_categories = 10 controls whether a stratification column is categorical or continuous. Filters support comparisons, arithmetic, &, |, !, %in%, parentheses, and NONMEM dotted operators. Unknown or DROPped names, a single =, chained comparisons, and an empty retained population are errors.

Binning

Option Values/default Effect
--bins SPEC auto; nominal; integer N; or comma-separated edges Selects automatic, nominal, equal-count, or explicit-edge behavior.
--bin-method METHOD auto, count, width, edges, nominal Explicit method, especially width with --bins N.
--min-bin-obs N 10 Merges sparse bins except explicit-edge bins.

Settings add [binning].bins, edges, max_bins = 20, and min_obs = 10. Automatic binning uses weighted exact one-dimensional clustering, a 98% between-bin variance rule and a separated-sampling-cluster rule. Bins are computed independently per stratum.

Percentiles, confidence bands, and NPC

Option Values/default Effect
--pi LIST 5,50,95 One to seven VPC percentiles. One width, such as 90, expands to 5/50/95.
--ci PCT 95 Confidence level across replicate-specific percentiles and NPC coverage counts.
--npc-pi LIST 0,20,40,50,60,80,90,95 Record-level prediction intervals checked by NPC.
--hide-outside off Hides plot rings only; CSV/listing outside flags remain.

Percentiles use Hyndman–Fan type 7 interpolation. The simulated band is the requested interval across replicate-specific bin percentiles; it is not an individual prediction interval or a parameter confidence interval.

Prediction and variability correction

Option Default Effect
--pc-lower-bound LB 0 Lower support in multiplicative prediction correction. Records with PRED ≤ LB remain uncorrected.
--pc-log off Uses additive correction Y + PREDbin − PRED for log-scale DV; a lower-bound request is ignored.
--pvc off Adds variability correction; with plain VPC this yields pvcVPC behavior.

Equivalent settings are [prediction_correction].lower_bound, log_scale, and variability_correction.

LLOQ and BLQ records

Option Meaning
`--lloq VALUE COLUMN`
--blq-flag COLUMN Nonzero observed-data flag for BLQ records, used with LLOQ.

Observed censoring uses DV below LLOQ or the BLQ flag; simulated censoring uses simulated DV below the record’s LLOQ. NPC excludes censored observations. M3 models must return a simulatable Y with F_FLAG=0 in their ICALL=4 branch.

Parameter uncertainty

Option Default Effect
--param-uncertainty off Draws a correlated THETA/OMEGA/SIGMA state from the fitted covariance for every replicate.
--cov FILE discovered beside results Covariance source for MVN draws.
--param-file FILE none Empirical bootstrap/SIR/posterior parameter rows; implies uncertainty.

Settings-only [uncertainty].max_attempts = 100 controls bound/positive-definiteness redraws. [uncertainty].enabled, cov, and parameter_file correspond to CLI behavior. Fixed parameters and SAME ties are preserved. The actual states appear in vpc_parameters.csv.

Report, SVG, simulation, and output controls

Option Meaning
-c FILE.vpc Read settings; paths resolve against the settings-file folder. CLI overrides the file.
--print-config FILE.vpc Write the complete annotated template and stop; --overwrite replaces it.
-o DIR, --output DIR Output directory; default <control-stream folder>/<stem>_vpc.
--overwrite Permit a non-empty output directory. Prefer a fresh directory for evidence runs.
--no-plots Tables only: no HTML report or report SVGs. Publication plots remain controlled by plot options.
--no-svg Disable all report and publication SVGs; HTML and PNG publication plots are unaffected.
--write-sims Write raw simulations; plan disk size first.

Settings-only output controls are [output].directory, html = true, svg = true, and write_simulations = false. Every run writes resolved vpc_settings.vpc, transcript, and checksums.

Publication and presentation controls

Option Values/default
--plots Enable publication figures in plots/. Any --plot-* option also enables them.
--plot-width, --plot-height 7 × 5 by default.
--plot-units in default; cm, mm, or px.
--plot-dpi 300; accepted 50–2400.
--plot-base-size 11 pt; accepted 4–48.
--plot-format png default; svg or both.
--plot-colors LIST Named pairs: median, outer, observed, points, outside, reference.
--plot-no-title, --plot-no-legend Publication-figure title/legend suppression.
--hide-points Removes observation points from VPC panels.
--legend-position bottom default or top.
--x-title, --y-title Custom axis titles and units.
--no-caption Removes the grey provenance caption.
--x-scale, --y-scale, --log-y Linear/log axes; nonpositive values are omitted visually but retained analytically.

Settings mirror these under [vpc], [plots], and [plots.colors]. Defaults are orange median, blue outer bands, black observed lines, grey points, red outside rings, and dark-grey references.

Logging, privacy, and shared operations

--suppress-console 0|1, --log-file, --no-color, repeated -v, -q, --keep-subject-ids, --license, and -h/--help are shared controls. --dry-run invokes the shared validation pipeline when supported by the command dispatcher; it does not produce a predictive-check evidence bundle.

Shared-parser options such as covariate --method, posterior checkpoint/resume controls, generate-study options, fit estimation/covariance/retry options, and unrelated schema --format do not alter VPC computation merely because they appear in global help.

Output files

File Purpose
vpc_summary.txt, vpc_summary.json Human listing and complete structured result/settings summary.
vpc_report.html Self-contained interactive report when HTML/report plots are enabled.
vpc_bins.csv Per-stratum/bin cut points, x summaries, N, PRED median, observed/simulated percentiles, outside and BLQ fields. Not written for NPC-only.
vpc_observations.csv Observation-level row, stratum, bin, IDV, DV, PRED, correction, LLOQ, and BLQ mapping.
npc_results.csv Per-stratum/PI lower and upper coverage counts, expected percentages, intervals, and flags.
vpc_parameters.csv Replicate parameter states when uncertainty is enabled.
vpc_simulations.csv Raw simulated observations when requested.
svg/*.svg Report VPC, BLQ, and NPC charts.
plots/*.png, plots/svg/*.svg Publication figures when enabled.
vpc_settings.vpc Fully resolved rerun settings with paths.
checksums.sha256, log_*.txt Integrity manifest and transcript.

Use the output-schema page and complete reporting checklist when reviewing a production bundle.