Documentation

36.25 forest command reference

forest 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 forest [OPTIONS] [CONTROL_STREAM]

Required context. A fitted model with parameter estimates and uncertainty (.cov or bootstrap) plus covariate values/levels or exposure scenarios.

What it does. Calculates parameter ratios over covariate values and optional steady-state exposure changes, with confidence intervals, variability, and reference bands.

Principal outputs. Effect/exposure tables, forest plots, report, settings, source provenance, logs, 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 forest models/run102.ctl --plots -o forest
  2. nlmx forest -c study.forest --exposure auc,cmax --ss-interval 24

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 forest --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 forest 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)

Frozen method

Option Installed description
--no-uncertainty Disable .cov uncertainty propagation

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
--covariate-model generate: also fit the true covariate model (effects estimated) as models/run102, ready for forest

Forest

Option Installed description
--parameters <LIST> forest: parameters to show, comma separated (default: every parameter whose code uses a covariate)
--forest-covariates <LIST> forest: covariates to show, comma separated (default: every covariate the model uses)
--quantiles <LIST> forest: percentiles of a continuous covariate shown (default 5,95)
--covariate-values <COV=VALUES> forest: values of one covariate, COV=V1,V2 (repeatable, ';'-separated), e.g. WT=50,90
--covariate-labels <COV=LABEL> forest: covariate labels, COV=LABEL (repeatable), e.g. "WT=Body weight (kg)"
--level-labels <COV=L:LABEL,…> forest: level labels of a categorical covariate, COV=LEVEL:LABEL,… (repeatable), e.g. "SEX=0:Male,1:Female"
--scenario <NAME:COV=V,…> forest: a combination of covariate values, "NAME:COV=V,COV=V" (repeatable), e.g. "Elderly woman:AGE=80,SEX=1"
--reference-band <LOW,HIGH> forest: reference band on the ratio scale, LOW,HIGH (default 0.8,1.25)
--no-band forest: no reference band
--no-bsv forest: no between-subject-variability rows
--layout <MODE> forest: layout: stacked (default: parameters one above the other) | side (parameters side by side)
--x-limits <LOW,HIGH> forest: x-axis limits on the ratio scale, LOW,HIGH (default: from the intervals)
--no-values forest: no value column ("1.12 [0.98, 1.27]") beside the plot
--inverse <LIST> forest: show 1/P (exposure, e.g. AUC for 1/CL) for these parameters, comma separated
--exposure <LIST> forest: steady-state exposure rows, comma separated: cmax, cmin, ctrough, auc, cavg (or all), from post hoc individual parameters (--exposure-source posthoc) or the typical subject (typical) er: exposure metric column(s), comma separated (e.g. AUC,CMAX,CAVG)
--exposure-source <SOURCE> forest: exposure source: posthoc (subjects' individual parameters, compared by covariate subgroup; default) | typical (typical subject at the covariate values)
--ss-regimen <MODE> forest: regimen of the post hoc steady-state exposures: common (the most frequent regimen of the data, for every subject; default) | own (each subject's last dose)
--ss-dose <AMT> forest: dose per administration for the steady-state exposures (default: from the regimen)
--ss-interval <H> forest: dosing interval tau (h) for the steady-state exposures (default: each subject's II)
--ss-infusion <H> forest: infusion duration (h) for the steady-state exposures (default: as in the data; 0 = bolus)
--ss-cmt <N> forest: dosing compartment for the steady-state exposures (default: as in the data)
--exposure-bins <LIST> forest: percentiles splitting a continuous covariate into subgroups for post hoc exposures (default 25,75: three groups)
--exposure-reference <REF> forest: post hoc exposure reference: group (the subgroup with the median or most frequent level; default) | all (all subjects)
--exposure-only forest: exposure rows only (no parameter rows)

Fit

Option Installed description
--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
--samples <N> vpc: number of simulated replicates of the dataset (default 1000)
--ci <PCT> vpc: confidence level (%) of the simulated-percentile bands (default 95) er: confidence level (%) of intervals and bands (default 95)
--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)
--no-caption vpc, fit, autoinit, screen: no grey caption (check, observations, date) under the charts
--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-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

Confirm parameterization, reference subject, units, covariate percentiles/levels, uncertainty source, covariance ordering, and clinical reference band. A ratio plot is not a dosing recommendation.

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.