Documentation

Complete sims command and settings index

This page is the versioned lookup for nlmx 4.14.3. It distinguishes options shown in nlmx sims --help, shared options that sims consumes, and settings-only controls. When CLI and settings differ, CLI normally wins; the resolved <stem>_settings.sims is the authoritative record of what ran.

Settings and command precedence

Command forms

# Minimal generated study
nlmx sims run.ctl

# Qualified final estimates, explicit population and regimen
nlmx sims run.ctl --ext run.ext --estimates final `
  --population adult --subjects 200 --dose 100 --tau 24 `
  --subproblems 500 --seed 28001 -o run_sims

# Supply an existing design through a settings file
nlmx sims -c own-design.sims -o own_design_sims

# Write the annotated template and stop
nlmx sims --print-config nlmx.sims

Input, execution, and common controls

CLI Meaning
positional CONTROL_STREAM, --ctl FILE Model and $INPUT layout. One is required unless [input].control_stream supplies it.
--ext FILE Final estimates used by --estimates final or auto.
--cov FILE Parameter covariance; with --param-uncertainty, supplies one parameter draw per subproblem.
--data FILE Existing analysis dataset; skips population/design generation.
-c, --config FILE.sims TOML settings file. Relative paths resolve against its folder.
-o, --output DIR Output directory. Default is beside the control stream.
--overwrite Allow a nonempty output directory. Use deliberately because it can mix evidence generations.
--dry-run Run the validation path without the full analysis.
--threads N Subject/subproblem worker count; results are intended to be thread-independent.
--seed N Master seed; precedence is CLI, settings, first $SIMULATION seed, then 20260101.
--stem NAME Output stem. Although grouped under fit in tailored help, it is consumed by sims.
--print-config FILE.sims Write the fully annotated template and stop.
`--suppress-console 0 1, --log-file FILE, -v, -q, --no-color`
--keep-subject-ids Shared privacy control. Generated IDs are synthetic; supplied-design privacy still matters.
-h, --help, --license Help and licence output.

--run-dir, --no-checkpoint, and schema --format appear in the shared parser but do not define the sims analysis. Do not imply that options belonging solely to fitting, posterior checkpointing, VPC binning, or other commands affect a simulation.

Population and dataset generation

CLI Values/default Effect
--subjects N 100 per arm Subjects generated in every arm. With --dose-levels, total N is N × arms.
--population KIND adult adult, pediatric, or mixed.
--pediatric-fraction F 0.5 Pediatric fraction of a mixed population.
--pediatric-age MIN-MAX 2–20 y Pediatric age range.
--pediatric-weight SOURCE cdc cdc, normal, or lognormal.
--cdc-table FILE built-in CDC 2000 Replacement table with Sex, Agemos, L, M, S.
--cdc-z-limit SD 3 Maximum absolute CDC weight z score.
--adult-age MIN-MAX 18–80 y Truncation limits.
--adult-age-mean, --adult-age-sd 45, 15 y Normal adult age parameters.
--adult-weight-mean 70 kg Arithmetic mean.
--adult-weight-cv 0.15 Fraction or percentage text such as 15%.
--adult-weight-sd none SD in kg instead of CV.
--adult-weight-range MIN-MAX 35–250 kg Redraw limits.
--female-fraction F 0.5 Probability or exact balanced share.
--sex-codes MALE,FEMALE 0,1 Numeric codes written to the model dataset.
--sex-sampling MODE random random or exactly allocated balanced.
--weight-col, --age-col, --sex-col, --arm-col detected synonyms Explicit $INPUT role mapping.
repeatable --covariate SPEC none Additional marginal covariate generator.

Covariate grammar:

NAME=normal(mean,sd)[min,max]
NAME=lognormal(geometric_mean,cv)
NAME=uniform(min,max)
NAME=binary(probability_of_1)
NAME=categorical(value:weight,value:weight,...)
NAME=constant(value)

Dosing and sampling

CLI Values/default Effect
--dose MG 100 Fixed dose; mutually exclusive with per-kg and band rules.
--dose-per-kg MG/KG none Uses rounded generated weight.
--dose-levels LIST none One arm per dose level.
--weight-bands SPEC none Comma-separated from-to:dose bands.
--dose-min, --dose-max none Limits for calculated doses.
--dose-round MG none Round to a dose increment.
--tau H 24 for generated design Dosing interval in generated-design CLI overlay. See the supplied-design caveat below.
--n-doses N 1 Number of finite doses; last interval is normally analysed.
`--steady-state yes no` yes
--ss-doses N 20 Doses used when $INPUT lacks SS.
--infusion-duration H 0 RATE = dose/duration; RATE must exist in $INPUT.
--dose-rate RATE none Direct RATE, including -1 and -2 model-handled conventions.
--dose-cmt N 1 Dose compartment.
--sample-times LIST 12 interval-scaled times Hours relative to selected reference dose.
--sample-relative-to REF last-dose last-dose or first-dose.

Verified 4.14.3 caveat: for a supplied single-dose dataset without II, the shared --tau option did not populate [metrics].tau; the run still failed with “length of the dosing interval is unknown.” Put tau = 24.0 in [metrics] of the .sims file for this case. The executed documents/ch28/input/own-design.sims demonstrates the successful form.

Parameter state and simulation controls

CLI Values/default Effect
--estimates MODE auto initial, final, or auto resolution.
--subproblems N $SIMULATION, else 1 Repeated simulations of the complete study.
--sim-etas MODE sample sample or zero.
--sim-eps MODE sample sample or zero.
--omega-scale F 1 Multiplies OMEGA covariance elements.
--sigma-scale F 1 Multiplies SIGMA covariance elements.
--set-theta LIST none Indexed replacements, for example 1=3.2,4=0.5.
--param-uncertainty off Draw a parameter state for each subproblem. Shared help labels it VPC, but execution confirms sims consumes it.
--param-file FILE none Empirical THETA/OMEGA/SIGMA rows; implies uncertainty.
--table-vars LIST $TABLE items Additional evaluated model variables.
--no-table-record off Ignore control-stream $TABLE items.
--lloq VALUE none Numeric simulated LLOQ.
--blq-action ACTION none none, flag, set-lloq, or drop.

Variance scale is a variance multiplier, not an SD multiplier. Parameter uncertainty is one state per subproblem; ETA is one vector per subject; EPS is one vector per observation record.

Exposure metrics

CLI Values/default Effect
--metrics LIST CMAX,TMAX,CMIN,CTROUGH,CAVG,AUCTAU Also supports TMIN, FLUCT, SWING, PTR, CLSS.
--no-metrics off Skip metrics and dependent summaries/targets/figures.
--metric-profile SOURCE dense dense, sampled, or observed.
--metric-interval WHICH last first, last, or dose number.
--conc-variable NAME F Model variable for dense concentration.
--grid-points N 241 Dense-grid points over tau; requested exact times are added.
--auc-method RULE linear-up-log-down linear, linear-log, or linear-up-log-down.
--partial-auc LIST none Windows such as 0-4,0-12.
--trough-time H tau CTROUGH evaluation time after the interval-start dose.
--conc-at LIST none Exact concentration times such as 2,6; produces C_2H/C_6H.
--dose-normalize off Adds _DN metric columns divided by dose.

Metric definitions:

Metric Definition
CMAX/TMAX Highest concentration in the selected interval and its relative time.
CMIN/TMIN Lowest concentration and its relative time.
CTROUGH Concentration at tau or requested trough time.
AUCTAU Trapezoidal area over tau.
CAVG AUCTAU/tau.
FLUCT 100 × (CMAX − CMIN)/CAVG.
SWING (CMAX − CMIN)/CMIN.
PTR CMAX/CMIN.
CLSS dose/AUCTAU; apparent clearance after extravascular dosing.

Summary, groups, and targets

CLI Values/default Effect
--summary-by COLUMNS none One-way summaries in addition to overall. Multiple arms are automatically grouped.
--summary-cross off Also produce the crossing of all summary-by columns.
--summary-stats LIST broad default set n mean sd cv geomean geocv min max median q1 q3 iqr sem sum var and p<number>.
--age-bins LIST none Creates AGEGRP from break points.
--weight-bins LIST none Creates WTGRP.
--targets LIST none Ranges such as CAVG:10-50,CMIN:>=5,CMAX:<=100. Quote comparison signs in PowerShell.
--digits N 4 Significant digits in summary display.

_summary.csv pools all subject-simulation rows. When subproblems >1, _summary_simulations.csv reports the median and configured interval of within-study statistics. _targets.csv similarly includes pooled counts plus median/lower/upper percentages across studies.

Figures and extra outputs

CLI Values/default Effect
`--boxplot-metrics LIST none` CMAX, CMIN, CAVG, AUCTAU when available
--boxplot-by COLUMN first summary group, else ARM X grouping.
`--scatter LIST none` supported WT/AGE pairs by default
--smoother KIND loess loess, linear, or none.
--no-profile-plot off Suppress profile figure.
--profile-scale SCALE linear linear, log, or both; log file is named profile_semilog.png.
--write-profiles off Write first-subproblem metric profiles; can be large.
--write-nonmem-table off Write TABLE NO. blocks to _sim.tab.
--plot-width, --plot-height, --plot-units, --plot-dpi, --plot-base-size 7 × 5 in, 300 dpi, 11 pt Physical publication-plot controls.
--no-plots, --no-svg, --no-caption shared switches Current tailored help labels these primarily for other commands; prefer explicit [plots] settings for sims format/enabling behavior.

Complete settings-file structure

--print-config is the safest source for the current schema. All keys below are typed and unknown keys are refused.

Section Keys
[input] control_stream, data, estimates_file, cdc_table
[columns] weight, age, sex, arm, age_unit
[simulation] seed, subproblems, threads, etas, eps, omega_scale, sigma_scale, theta, estimates, table_variables, use_table_record, lloq, blq
[uncertainty] enabled, covariance, parameter_file, max_attempts
[population] kind, subjects, pediatric_fraction, male_code, female_code, sex_sampling, age_decimals, weight_decimals
[population.pediatric], [population.adult] age_min, age_max, age_distribution, age_mean, age_sd, weight, weight_mean, weight_cv or weight_sd, weight_mean_female, weight_min, weight_max, cdc_z_limit, female_fraction
[dosing] dose, basis, dose_min, dose_max, dose_round, weight_bands, interval, doses, steady_state, ss_doses, compartment, duration, rate
[sampling] times, relative_to, compartment
[metrics] enabled, parameters, profile, interval, grid_points, auc_method, variable, tau, trough_time, partial_auc, concentrations_at, dose_normalize
[summary] statistics, by, cross, digits, replicate_interval
[[summary.bins]] column, breaks, labels, name
[figures] boxplots, boxplot_by, points, scatter, smoother, profiles, profile_scale, profile_percentiles, profile_individuals
[output] directory, stem, delimiter, missing, digits, header, dataset, simulated, subjects, metrics, summary, profiles, nonmem_table, html, json, settings
[plots] enabled, width, height, units, dpi, base_size, format, title, legend
[[covariates]] name, distribution, optional group, and distribution-specific moments/limits/values/weights/rounding
[[arms]] name, subjects, with nested arm population/dosing/sampling overrides
[[targets]] metric, lower, upper, name

Output contract

Artifact Role
<stem>_data.csv Generated NONMEM-ready design; absent with supplied data.
<stem>_sim.csv All simulated datasets stacked with SIM and table variables.
<stem>_sim.tab Optional NONMEM table.
<stem>_subjects.csv Subject × simulation metadata, ETAs, dose, interval, groups, covariates.
<stem>_metrics.csv Subject × simulation exposure metrics and COVERED.
<stem>_summary.csv Pooled group/metric statistics.
<stem>_summary_simulations.csv Across-subproblem intervals of within-study statistics.
<stem>_targets.csv Pooled and across-study target attainment.
<stem>_profiles.csv Optional first-subproblem metric profiles.
<stem>_summary.json Structured design, simulation, metric, summary, target, notes, and file metadata.
<stem>_settings.sims Resolved rerun settings.
sims_summary.txt, sims_report.html Human-readable summary and self-contained report.
plots/ Profile, box, and scatter PNGs; optional SVG through settings.
log_<n>.txt, checksums.sha256 Transcript and integrity evidence.

Minimum review sequence

  1. Confirm the source model and selected parameter state.
  2. Inspect generated or supplied event records and realised covariates/doses.
  3. Read warnings, notes, coverage flags, and rejected parameter draws.
  4. Verify metrics from subject rows before using pooled summaries.
  5. Read across-study intervals and subgroup denominators with target percentages.
  6. Check figures against the tables, then archive the entire bundle and source inputs.

This index does not imply that every syntactically accepted combination is scientifically valid. Model qualification, extrapolation limits, target provenance, and cross-software validation remain the analyst's responsibility.