Complete forest command and settings index
This page covers every nlmx 4.14.3 option that materially controls forest, including settings-file-only controls. The shared CLI also displays switches belonging to other commands; the final section identifies those so they are not mistaken for forest features.
Minimal and fully instrumented commands
# Discover .ext/.cov beside the fitted control stream
nlmx forest run102.ctl
# Publication parameter effects, an inverse-CL section, and a joint scenario
nlmx forest run102.ctl --results-dir run102_fit `
--parameters CL,V --forest-covariates WT,EGFR,SEX `
--covariate-values WT=50,90 --covariate-values EGFR=45,90,120 `
--scenario "Low weight renal impairment:WT=50,EGFR=45" `
--inverse CL --samples 1000 --ci 90 --seed 26048 `
--reference-band 0.8,1.25 --plots --plot-format both -o forest_primary
# Post hoc steady-state exposure subgroups
nlmx forest run102.ctl --results-dir run102_fit `
--forest-covariates WT,EGFR,SEX --exposure all --exposure-only `
--exposure-source posthoc --ss-regimen common `
--ss-dose 100 --ss-interval 24 --exposure-bins 25,75 `
--exposure-reference group --plots -o forest_posthoc
# Annotated settings template and rerun
nlmx forest --print-config nlmx.forest
nlmx forest -c nlmx.forest
Required model and result inputs
| Option | Meaning |
|---|---|
positional CONTROL_STREAM |
Fitted .ctl/.mod; same role as --ctl. |
--ctl FILE |
Explicit fitted control stream. Required unless supplied positionally or in [inputs]. |
--results-dir DIR |
Directory holding fitted outputs when not beside the control stream. <stem>.ext is preferred; an unambiguous only .ext can be used. |
--ext FILE |
Final-estimate override. A forest plot requires fitted estimates. |
--cov FILE |
Parameter covariance override for covariance-draw uncertainty. |
--data FILE |
Analysis-data override instead of $DATA. |
--phi FILE |
Individual ETA source for post hoc exposure; otherwise a matching PHI is sought or modes are estimated. |
--param-file FILE |
Bootstrap/SIR parameter rows instead of covariance-based MVN draws. |
--stem NAME |
Overrides the run stem used to find result files and name default output. |
--model-dir, --files, --cor, --lst, --table, --run-stem, and --recursive appear in shared help, but the forest implementation is centered on a required control stream plus --results-dir or explicit overrides. Do not assume the full covariate run-family discovery workflow substitutes for the fitted control-stream requirement.
Parameter/covariate rows and reference settings
| Option | Values/default | Role |
|---|---|---|
--parameters LIST |
default every parameter whose code uses a covariate | Selects parameter sections. |
--forest-covariates LIST |
default model covariates | Selects effect covariates; explicitly names post hoc subgroup covariates even if absent from model code. |
--quantiles LIST |
default 5,95 |
Baseline-subject percentiles for continuous rows. |
--covariate-values COV=VALUES |
repeatable or semicolon-separated | Explicit values replacing quantiles for that covariate. |
--scenario NAME:COV=V,... |
repeatable | Changes several covariates together. |
--covariate-labels COV=LABEL |
repeatable | Human-readable covariate labels and units. |
--level-labels COV=L:LABEL,... |
repeatable | Human-readable categorical levels. |
--inverse LIST |
parameter list | Adds 1/P sections. Appropriate exposure shorthand only under stated assumptions. |
--no-bsv |
flag | Hides parameter/exposure variability rows. |
Settings-file-only controls include [forest].max_categories = 5, [forest].bsv_pi = 90, [forest].show_reference = false, explicit [reference], [values], [labels], [level_labels], [parameter_labels], and repeatable [[scenarios]] tables.
Uncertainty and interval controls
| Option | Values/default | Role |
|---|---|---|
--samples N |
default 1000 |
Covariance draws, parameter-file evaluations as applicable, or post hoc subject bootstrap replicates. |
--ci PCT |
default 90 |
Percentile interval level. |
--seed N |
settings default 20240611 unless CLI master seed overrides |
Reproducible uncertainty/bootstrap stream. |
--cov FILE |
covariance source | Enables correlated MVN draws around estimates in auto/cov mode. |
--param-file FILE |
parameter rows | Uses empirical bootstrap/SIR sets. |
--no-uncertainty |
flag | Point estimates only; intervals and band classes requiring intervals are absent. |
--write-sims |
flag | Writes forest_draws.csv with every draw's ratios. |
Settings add [forest].uncertainty = "auto"|"cov"|"file"|"none" and max_attempts = 100 for bound-respecting redraws.
Reference-band and main-plot controls
| Option | Values/default | Role |
|---|---|---|
--reference-band LOW,HIGH |
default 0.8,1.25 |
Band used for within/overlaps/outside classification. |
--no-band |
flag | Removes band and classification context. |
--layout MODE |
stacked (default), side |
Section arrangement. |
--x-scale SCALE |
log default for forest, or linear |
Ratio-axis transformation. |
--x-limits LOW,HIGH |
automatic default | Fixed plotting range; out-of-range intervals use arrows. |
--x-title TEXT |
generated default | Ratio-axis label. |
--no-values |
flag | Hides numeric ratio/interval column on the plot, not the CSV. |
--legend-position POS |
bottom default or top |
Legend placement. |
--no-caption |
flag | Removes the grey provenance caption. |
Settings [plot] additionally accepts title, show_band, show_values, and the same layout/axis/band/legend/caption values.
Exposure metrics and source
| Option | Values/default | Role |
|---|---|---|
--exposure LIST |
cmax, cmin, ctrough, auc, cavg, or all |
Adds steady-state exposure sections. |
--exposure-source SOURCE |
posthoc (default), typical |
Selects individual subgroup or ETA=0 scenario analysis. |
--exposure-only |
flag | Removes parameter rows. |
--ss-regimen MODE |
common (default), own |
Standardized most-frequent regimen or each subject's last regimen. |
--ss-dose AMT |
dataset regimen default | Dose per administration. |
--ss-interval H |
dataset II default | Steady-state tau; required when dataset lacks II. |
--ss-infusion H |
dataset RATE-derived default; 0 bolus/first-order |
Infusion duration. |
--ss-cmt N |
dataset regimen default | Dosing compartment. |
--exposure-bins LIST |
default 25,75 |
Post hoc continuous subgroup cut percentiles. |
--exposure-reference REF |
group (default), all |
Denominator subgroup or all-subject geometric mean. |
--phi FILE |
matching PHI/modes fallback | Individual ETAs for post hoc simulation. |
Settings [exposure] also exposes grid = 240 time subdivisions, plus metrics/source/regimen/dose/interval/infusion/CMT/bins/reference/only/PHI.
Output and publication rendering
| Option | Values/default | Role |
|---|---|---|
-c, --config FILE |
.forest TOML |
Loads settings; relative paths resolve from the file. CLI values win. |
-o, --output DIR |
<control-folder>/<stem>_forest |
Output directory. |
--overwrite |
flag | Allows a non-empty destination; avoid for immutable evidence. |
--print-config FILE |
.forest path |
Writes the complete annotated template and exits. |
--no-svg |
flag | Suppresses SVG files; HTML/PNG are unaffected. |
--plots |
flag | Enables publication plots. Any --plot-* option also enables them. |
--plot-width W, --plot-height H |
7 inches wide, auto height | Publication dimensions. |
--plot-units UNITS |
in, cm, mm, px |
Dimension units. |
--plot-dpi DPI |
default 300 |
Raster resolution. |
--plot-base-size PT |
default 11 |
Base typography size. |
--plot-format FORMAT |
png (default), svg, both |
Publication formats. |
--plot-colors LIST |
point, ci, band, reference, bsv mappings |
Forest theme colors. |
--plot-no-title |
flag | Removes plot title. |
--plot-no-legend |
flag | Removes legend. |
Settings [output] controls directory, html, svg, and write_draws; [plots] controls enabled/dimensions/units/DPI/base size/format/title/legend; [plots.colors] provides exact element colors.
Shared execution and logging options
| Option | Meaning for forest |
|---|---|
--threads N |
Shared parallelism control; outputs should not depend on N. |
| `--suppress-console 0 | 1` |
--log-file FILE |
Selects transcript path. |
-v, --verbose... |
Increases terminal detail. |
-q, --quiet |
Terminal errors only; log remains. |
--no-color |
Disables ANSI color. |
--license |
Prints licensing/version-use information and exits. |
-h, --help |
Prints forest-specific help and exits. |
--run-dir, --dry-run, --no-checkpoint, --format, and --keep-subject-ids are displayed by the shared parser but do not define ordinary forest computation. --format belongs to schema; checkpoint controls belong to posterior selection. Aggregate forest outputs do not normally expose subject IDs.
Output files
| File | Content |
|---|---|
forest_results.csv |
One row per parameter/exposure contrast with point, median, interval, CI, and band class. |
forest_summary.txt / .json |
Readable listing and typed machine-readable result. |
forest_report.html |
Interactive report and table. |
svg/forest.svg |
Standard vector graphic. |
plots/forest.png |
Publication raster when enabled. |
plots/svg/forest.svg |
Publication SVG when format is SVG/both. |
forest_draws.csv |
Optional draw-level ratios. |
forest_settings.forest |
Fully resolved rerun settings with absolute paths. |
checksums.sha256, log |
Integrity and execution transcript. |