nlmx — complete PK/PD pharmacometrics software that talks with you: data and control-stream QC, exploratory analysis, NCA, initial estimates, structural screening (incl. TMDD), population model fitting (FO to SAEM), covariate selection, VPC, forest plots, study simulation, exposure-response analysis and Maxson, the built-in assistant (ask) Usage: nlmx.exe [OPTIONS] Commands: inspect Discover and parse artifacts; summarise model, data and the candidate scope. Nothing is fitted validate Inspect plus artifact reconciliation, covariance diagnostics, covariate validation, a base-objective evaluation and a posterior feasibility check fit Estimate a NONMEM model with nlmx's own estimator and write NONMEM-format results (.ext .cov .cor .coi .phi), a final control stream, predictions/residuals, a parameter table and a report. Observations taken before any drug are left out (--keep-predose keeps them); predictions.csv carries DVID and --carry-columns; the goodness-of-fit plots can be back-transformed (--gof-back-transform), stratified (--gof-stratify) and filtered (--gof-filter); --print-options writes every estimation setting out vpc 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) autoinit Rapid initial estimates from a dataset alone: CL, V, KA, ALAG, F1, V1/Q/V2/Q3/V3, OMEGA and residual error, by NCA, individual least-squares fits and machine learning (k-NN on simulated profiles), pooled over subjects on different dosing regimens (--group); writes tables, NONMEM $THETA/$OMEGA/$SIGMA blocks and a report. Optional settings file: -c nlmx.init screen Structural-model screen from a dataset alone: fit 1-, 2- and 3-compartment models matching the administration route (first-order absorption for oral data, none for IV; optionally a lag) and, for nonlinear exposure, 1- and 2-compartment TMDD models; compare OFV, AIC, BIC, likelihood-ratio tests, precision and shrinkage, and recommend the base model. Optional settings file: -c nlmx.screen (--print-config) nca Non-compartmental analysis of a concentration-time dataset (WinNonlin/Monolix style): Cmax, Tmax, AUClast, AUCinf, AUMC, lambda-z, half-life, MRT, CL, Vz, Vss (or CL/F, Vz/F), steady-state AUCtau, Cavg, fluctuation and accumulation, per dosing interval; summary statistics, dose proportionality, group ratios, bioavailability; tables, an HTML report and figures (on by default). Optional settings file: -c nlmx.nca (--print-config). --mutate changes or creates columns first (R syntax) qc-data Quality control of a NONMEM-style dataset before modelling: file format and NM-TRAN readability, header and values, EVID/MDV/AMT/CMT/RATE/ADDL/II/SS consistency, time, dosing, observations (BLQ, outliers), individuals and covariates; writes a pass/warn/fail checklist, the findings, tables, a report and plots (on by default). Optional settings file: -c nlmx.qcd (--print-config; --list-checks lists the checks) qc-nm Quality control and correction of a NONMEM control stream: records, $INPUT against the dataset, $DATA, $SUBROUTINES and the PK parameters, the abbreviated code, $THETA/$OMEGA/ $SIGMA, $ESTIMATION/$COVARIANCE and $TABLE; writes a checklist, the findings, a corrected copy of the control stream (_qc.ctl), the changes and a report. Optional settings file: -c nlmx.qcn (--print-config; --list-checks lists the checks) eda Exploratory data analysis of a PK/PD dataset: concentration-time profiles (spaghetti, individual, mean with error bars, dose-normalised), sampling and dosing, BLQ, covariate distributions, pairs and correlations, observed exposure against covariates and dose, PK-PD; summary tables; custom plots and tables from the settings file. Writes plots/, CSV tables and report.html. Optional settings file: -c nlmx.eda (--print-config; --list-plots lists the standard plots and tables). --mutate changes or creates columns first (R syntax) custom Plots and tables of any dataset, on the fly: filter, subset and mutate a dataset or a NONMEM / simulation / NCA output table (R syntax), then draw ggplot2-style plots (point, line, smooth, boxplot, violin, bar, histogram, density, ecdf, qq, errorbar, tile, text; colour, fill, shape, size and line type by a column; facet_grid and facet_wrap; scales, themes, size/dpi/format) and make tables (listing, summary statistics, baseline characteristics, counts and percentages, pivot, correlation) saved as CSV, Markdown and HTML. Everything can be given on the command line or in a settings file: -c nlmx.custom (--print-config; --list-plots lists geoms, table kinds, themes and statistics). See docs/CUSTOM.md report Turn Markdown into documents: reads a Markdown file (or standard input, or text given with --markdown) and writes the Markdown document (.md, always), a Word document (.docx), a PDF (.pdf) and, on request, an HTML page (.html), into the output folder under one base file name. Headings, paragraphs, bold/italic/strikethrough/code, links, lists and task lists, tables, code blocks, quotes, rules, footnotes and PNG/JPEG/SVG images are carried over; a title block, a table of contents, page size, margins and font size can be set. Switch outputs off with --no-docx and --no-pdf (the Markdown cannot be switched off), on with --html. Settings file: -c study.report (--print-config). See docs/REPORT.md er Exposure-response analysis: exposure metrics (AUC, Cmax, Cavg, ...) against a continuous endpoint (linear, log-linear, Emax, sigmoid Emax and hockey-stick models), a binary one (logistic regression), an ordinal one (proportional odds), a count (Poisson), a time to event (Kaplan-Meier by exposure quantile, log-rank test, Cox model) or a longitudinal endpoint (means over time by exposure group). Placebo and placebo correction, data filtering and --mutate, exposure quantiles, binned observed data, covariates and stepwise covariate selection, model comparison, bootstrap; writes tables, a report and plots (on by default). Settings: -c nlmx.er (--print-config; --list-plots lists the plots). See docs/ER.md sims Simulate a study from a NONMEM control stream, as $SIMULATION does: generate the dataset (CDC weight-for-age for ages 2-20, normal weights for adults, sex, dosing and sampling) or take your own, simulate it (random effects, residual error, replicates), compute the steady-state exposure of every subject (Cmax, Cmin, Ctrough, Cavg, AUCtau ...), summarise and plot it. Optional settings file: -c nlmx.sims (--print-config writes the annotated template) power Sample size and power of a clinical trial (model-informed drug development): SSE, the stochastic simulation and estimation of PsN's sse (for every design scenario simulate replicate trials from the model, re-estimate the full and reduced models, and report the power of the covariate or parameter tests with bias, RSE, shrinkage, coverage and convergence), and FIM, the expected Fisher information of the design (PopED/PFIM style: expected RSE, Wald power, sample size for the target power). --method sse|fim|both. Settings: -c nlmx.power (--print-config writes the annotated template). See docs/POWER.md cov Covariate analysis: detect each covariate's type, try its typical equation (power for continuous, proportional for binary/categorical; --all-equations tries every equation of the type and keeps the best per pair), select the covariates and report the final model. Scope from -c nlmx.covar ([covariates] CL = ["WT", ...]) or, with no file, --covariates CL=WT,AGE plus --ctl/--model-dir. (`run` is the former name, still accepted.) posterior Reconstruct (or ingest) the subject posteriors and stop (posterior engine) resume Continue an interrupted posterior-stability run from its checkpoint (--run-dir) schema Print the annotated configuration reference (--format txt|toml|json|json-schema) generate Generate a complete synthetic NONMEM project in --output: a dataset simulated from a truth model (treatment groups with their own doses and sizes; 1-, 2- or 3-compartment oral, IV bolus or infusion models, optionally with a lag time or as $DES; with or without covariate effects), the base model fitted by maximum likelihood, and ready configurations for run, vpc and forest. Settings file: -c nlmx.gen (--print-config). `example` is an alias; `--model analytic|ode|iov-blq` are presets forest Pharmacometric forest plot of covariate effects in a fitted model: the ratio of each parameter at covariate values of interest (percentiles, levels, scenarios) to its typical value, with confidence intervals from the .cov or a bootstrap file, the between-subject variability and a reference band. Optional settings file: -c nlmx.forest (--print-config) simulate-study Simulation study: simulate datasets with known covariate effects, fit the base model, run both engines (and a refit SCM reference) and report sensitivity, specificity and agreement version Print version and build information ask Ask Maxson, the assistant built into nlmx: describe what you want in plain words ("screen data/pk.csv with a lag and fit the best model"). A language model turns it into nlmx commands; nlmx checks them against its guardrails, shows them, runs them after your "yes" and the model reports the results. Without a request (in a terminal) it starts a conversation. Settings: -c nlmx.ask (--print-config). See docs/ASK.md help Print this message or the help of the given subcommand(s) Options: -h, --help Print help (see a summary with '-h') -V, --version Print version Method: --method Selection engine: frozen | scm (stepwise forward/backward on refits) | posterior | both (overrides `method` in the config) --threads Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value Covariates: --covariates run, inspect, validate: covariates to test on a parameter, PARAM=COV1,COV2 (repeatable, or ';'-separated), e.g. --covariates CL=WT,AGE,SEX --covariates V=WT. Types (continuous, binary, categorical) are detected from the data. Replaces the configuration's scope; with a model (--ctl or --model-dir) no -c file is needed --continuous-forms Equations tried for continuous covariates: power, exponential, linear, standardized_linear, spline (default: power) --categorical-forms Equations tried for binary and categorical covariates: proportional (one θ per level), grouped (one θ for all non-reference levels), ordinal (default: proportional; a binary covariate always has the single proportional equation) --all-equations Try every standard equation of each covariate type (continuous: power, exponential, linear; categorical: proportional, grouped) and keep the best per pair, instead of the one typical equation (power; proportional) --covariate-forms Equations for one covariate, COV=FORMS (repeatable), e.g. --covariate-forms WT=power --covariate-type Covariate type, COV=continuous|binary|categorical|ordinal (repeatable; default: detected) --covariate-reference Centring value of a continuous covariate (or reference level of a categorical one), COV=VALUE|median|mean (repeatable; default: median, most frequent level) --missing-covariates Missing covariate values: error (default) | median | drop_subject --compare-forms How the equations of one parameter-covariate pair are compared: auto (default: refit each equation and keep the lowest AIC when there is more than one) | refit | score (score test only: fast, but cannot tell linear from exponential) --no-final-refit Skip the joint refit of the retained effects (both engines); the final model then uses one-step (frozen) or median two-stage (posterior) coefficients and has no OFV 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) Frozen method: --approximation Likelihood approximation: auto (from $ESTIMATION, default) | fo | foce | foce-i | laplace; `fit` and `screen` also accept saem (SAEM with an importance-sampling objective); screen default foce-i --refine Re-estimate the N most significant candidates by virtual refitting (0 = off) --calibration Score-test calibration: none | permutation | parametric-bootstrap --calibration-replicates Permutations or bootstrap replicates for --calibration --information Information: efficient | candidate-only --information-estimator Information estimator: opg (default, outer product of per-subject scores) | observed (finite-difference Hessian) --nuisance-information Nuisance information source: observed | from-cov --selection Selection mode: univariate | hierarchical-conditional | all-joint | refit-scm --adjust Multiplicity adjustment: none | bonferroni | holm | bh | by | westfall-young --alpha Forward inclusion alpha (stepwise: p-value of the likelihood-ratio test to enter) --retention-alpha Backward retention alpha (stepwise: a term whose p-value is above it is removed) --scm-direction Stepwise (--method scm): which stages to run: forward (inclusion only) | backward (elimination from the full model only) | both (forward, then backward; default) --scm-candidates-per-step Stepwise: candidates refitted at each forward step, best conditional score first; 0 = all of them, as PsN does (default 3) --max-candidates Hard cap on evaluated candidates (safety rail) --uncertainty Enable MVN resampling of the frozen parameters from the .cov --no-uncertainty Disable .cov uncertainty propagation --draws Number of uncertainty draws --fd-rel Relative finite-difference step --write-subject-scores Emit per-subject objective and score contributions (IDs hashed unless --keep-subject-ids) --write-matrices Emit information / efficient-information matrices per candidate Posterior method: --posterior-source Posterior source: require-phi | prefer-phi | reconstruct --allow-point-ebe Permit point EBEs with no usable curvature (0|1); output is labelled EXPLORATORY --response Response: posterior-draws | posterior-mean er: response (endpoint) column(s), comma separated --draw-method Draw method: normal | antithetic-normal | sobol-normal --resampling Resampling: complementary-pairs | subsample | bootstrap | repeated-kfold --replicates Number of resampling replicates --subject-fraction Subsample fraction in (0,1] --draws-per-resample Posterior draws per replicate --base-param-draws Base-parameter (.cov) perturbation draws --cv-folds Folds for penalty tuning inside each replicate --threshold Selection-probability threshold for retention --uncertain-lower Lower edge of the uncertainty band --sign-threshold Required sign stability --learners Learners (comma-separated): adaptive-elastic-net, group-elastic-net, weighted-gls, gam, boosting, multivariate --primary Learner whose selection probability drives retention --max-features Hard cap on generated feature columns (safety rail) --variance-consistency Variance consistency: penalized-matching | moment-correction | none --write-subject-level Emit per-subject posterior summaries --write-posterior-draws Emit the generated posterior draws (large) --write-replicate-selections Emit the per-replicate selection matrix Shared numerics: --seed Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML) --ridge-max Largest ridge permitted when stabilising a matrix; exceeding it is a failure --strict Promote every warning to an error 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 --subjects generate, simulate-study: subjects in total (generate: split evenly over the groups unless --subjects-per-group is given) --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 --groups generate: number of treatment groups (default: the number of --doses, or 1) --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 --n-doses generate: doses per subject (default 1; ADDL = N - 1); sims: number of doses, the last interval is analysed (default 1) --dose-interval generate: dosing interval in hours (default 24) --infusion-duration generate: infusion duration in hours for --route infusion (default 1); sims: infusion time in hours (0 = bolus or oral; needs a RATE item in $INPUT) --sample-times generate: sampling times (h after each sampled dose), comma separated (default by structure and route); sims: sampling times in hours after the last dose (default 12 times over the interval) --sparse-samples generate: sparse sampling: this many samples per subject, drawn at random from the sampling times --typical generate: true typical values, NAME=VALUE list, e.g. "CL=5,V=50,KA=1.5" (names: CL, V, Q, VP, Q2, VP2, KA, ALAG) --iiv generate: between-subject variability as CV %, NAME=CV list, e.g. "CL=30,V=25,KA=40" (0 = no ETA) --prop-error generate: proportional residual error, CV % (default 15) --add-error generate: additive residual error, SD in concentration units (default 0.02) --effects generate: true covariate effects, PARAM~COV=VALUE list, e.g. "CL~WT=0.75,V~WT=1,CL~AGE=-0.3,CL~SEX=0.8" (continuous: power exponent at the median; SEX: factor for SEX = 1). Covariates: WT, AGE, SEX, EGFR, CRCL --no-covariate-effects generate: simulate without any covariate effect --covariate-model generate: also fit the true covariate model (effects estimated) as models/run102, ready for `forest` --author generate: author named in the header of every control stream (default Obinna Obianom); report: author of the document --ode generate: write the models as $DES (ADVAN13) instead of the analytic ADVANs --no-fit generate: write the data and control streams only, without fitting the base model --gof-plots generate: also draw the goodness-of-fit plots of the fitted models into gof/ (needs the fit; with --covariate-model the true model's plots carry `truth` in their file names) --study-replicates Replicate datasets per scenario (`simulate-study`) --scenarios Scenarios for `simulate-study` (comma separated): rich, sparse, high-shrinkage, correlated, rare-category --scm-reference Include a refit-based stepwise (SCM) reference in `simulate-study` Forest: --parameters forest: parameters to show, comma separated (default: every parameter whose code uses a covariate) --forest-covariates forest: covariates to show, comma separated (default: every covariate the model uses) --quantiles forest: percentiles of a continuous covariate shown (default 5,95) --covariate-values forest: values of one covariate, COV=V1,V2 (repeatable, ';'-separated), e.g. WT=50,90 --covariate-labels forest: covariate labels, COV=LABEL (repeatable), e.g. "WT=Body weight (kg)" --level-labels forest: level labels of a categorical covariate, COV=LEVEL:LABEL,… (repeatable), e.g. "SEX=0:Male,1:Female" --scenario forest: a combination of covariate values, "NAME:COV=V,COV=V" (repeatable), e.g. "Elderly woman:AGE=80,SEX=1" --reference-band 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 forest: layout: stacked (default: parameters one above the other) | side (parameters side by side) --x-limits 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 forest: show 1/P (exposure, e.g. AUC for 1/CL) for these parameters, comma separated --exposure 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 forest: exposure source: posthoc (subjects' individual parameters, compared by covariate subgroup; default) | typical (typical subject at the covariate values) --ss-regimen 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 forest: dose per administration for the steady-state exposures (default: from the regimen) --ss-interval forest: dosing interval tau (h) for the steady-state exposures (default: each subject's II) --ss-infusion forest: infusion duration (h) for the steady-state exposures (default: as in the data; 0 = bolus) --ss-cmt forest: dosing compartment for the steady-state exposures (default: as in the data) --exposure-bins forest: percentiles splitting a continuous covariate into subgroups for post hoc exposures (default 25,75: three groups) --exposure-reference 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: --max-iterations fit, screen: maximum estimation iterations (default 300, or 0 when $EST has MAXEVAL=0); 0 only evaluates the objective and individual estimates at the initial values --gradient-tolerance fit, screen: gradient tolerance on the internal (transformed) scale (default 1e-3) --cov-step fit, screen: run the covariance step even without $COVARIANCE --no-cov-step fit, screen: skip the covariance step even when $COVARIANCE is present --retry fit: retry a failed estimation up to N times (0 to 10, default 0 = no retry). A run fails when it stops with a numerical error or does not converge. Retry 1 starts from the autoinit estimates of the dataset, each further retry from those values changed at random by up to +/-15% (--seed); the retries are written to /retries/ and the first one that converges ends the loop --cov-matrix fit: covariance matrix: rsr (sandwich, NONMEM default) | r | s (default: $COV MATRIX=) --start-from-ext fit: start from the estimates in --ext instead of the control stream's initial values --stem fit: file stem for the NONMEM-format outputs (default: the control stream's stem) --saem-burn fit (SAEM): maximum burn-in iterations (default: $EST NBURN, else 1000; ends earlier once stationary unless NBURN was set explicitly without CTYPE) --saem-iter fit (SAEM): accumulation iterations with step size 1/k (default: $EST NITER, else 300) --saem-chains fit (SAEM): MCMC chains per subject (default: $EST ISAMPLE, else 2) --is-samples fit (SAEM): importance-sampling draws per subject for the objective and the covariance step (default: ISAMPLE of a following $EST METHOD=IMP, else 300) --no-table fit: do not write predictions.csv (PRED, IPRED, residuals, ETAs per observation) --carry-columns fit: dataset columns also written to predictions.csv, comma separated (e.g. STUDY,DOSE); DVID is always carried when the dataset has it ([output] carry_columns) --gof-back-transform fit: back-transform DV, PRED and IPRED before the goodness-of-fit plots: exp (the model is fitted on ln DV) | exp10 (on log10 DV); residuals are left as they are --gof-stratify fit: also draw the goodness-of-fit plots for each level of this dataset column (e.g. DVID, STUDY, DOSE) --gof-filter fit: observations kept for the goodness-of-fit plots, R syntax on dataset columns and the values of predictions.csv (DV, PRED, IPRED, TIME, CWRES, …, before any back-transformation), e.g. "TIME > 0 & DVID == 1" --print-options fit: print the estimation settings of this control stream as command-line options, every one written out (approximation, iterations, tolerance, covariance step, SAEM), and stop --keep-predose fit: keep in the estimation the observations taken before any drug was given (before the first dose, at its time with nothing absorbed yet, or of a subject without doses); by default they are left out when the model predicts 0 there, as their DV cannot be drug 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 Dataset (autoinit, screen): --mutate eda, er, nca: change or create dataset columns before the analysis, R-syntax assignments separated by `;`, e.g. "DV = DV * 4; LNDV = log(DV); HIGH = DOSE == 100" (true is 1, false 0); runs before the filters ([data] mutate) --id-col autoinit, screen: subject identifier column (default ID) er: subject column (default ID when present) --time-col autoinit, screen: time column (default TIME) er: time column of a time-to-event or longitudinal endpoint --dv-col autoinit, screen: observation column (default DV) --amt-col autoinit, screen: dose amount column (default AMT) --evid-col autoinit, screen: event identifier column (default EVID; inferred from AMT if absent) --mdv-col autoinit, screen: missing-DV flag column (default MDV; inferred if absent) --cmt-col autoinit, screen: compartment column (default CMT; used to tell IV from oral doses) --rate-col autoinit, screen: infusion rate column (default RATE) --addl-col autoinit, screen: additional doses column (default ADDL) --ii-col autoinit, screen: dosing interval column (default II) --ss-col autoinit, screen: steady-state flag column (default SS) --group autoinit, screen: grouping columns, comma separated, for subjects sharing a dosing regimen (or study, formulation, route), e.g. REGIMEN or STUDY,FORM. One set of estimates is made from all subjects, each with its own doses; the groups give the route per group, a regimen summary and a check that their clearances agree er: dose-group (arm) column, used with --placebo --route autoinit, screen: administration route: auto (default: RATE > 0 = infusion; with CMT, a dose into the observed compartment = IV bolus, else oral; without CMT, the profile shape decides: rising after the dose = oral, highest at the first sample = IV) | oral | iv (bolus, or infusion when RATE > 0) | bolus | infusion | mixed (oral and IV told apart by CMT) --dv-log autoinit, screen: DV is the natural log of the concentration --obs-filter autoinit, screen: keep only the observation records matching an R-style condition (doses are always kept), e.g. "DVID == 1 & BLQ == 0"; --filter tests every row 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 Custom: --skip custom: ignore the first N lines of the dataset before reading it (a title or run line above the column names, as in some NONMEM tables); 0 by default --header custom: true (the default) takes the first line left (after --skip) as the column names; false reads every line as data and names the columns A, B, C, ... Z, AA, AB, ... [possible values: true, false] --no-header custom: same as --header false: the dataset has no column names, so the columns are A, B, C, ... --geom custom: the layers of the plot, comma separated: point, jitter, line, path, step, smooth, boxplot, violin, bar, col, histogram, density, area, ecdf, qq, errorbar, pointrange, tile, text (--list-plots describes them), e.g. point,smooth --x custom: x aesthetic: a column, or an R expression such as log(CONC); factor(COL) makes it discrete --y custom: y aesthetic: a column or an R expression --color custom: colour by a column (discrete or gradient), or a fixed colour (name or #RRGGBB) --fill custom: fill by a column or a fixed colour --shape custom: point shape by a column, or a fixed shape (circle, square, triangle, diamond, plus, cross) --size custom: point size or line width by a column, or a fixed number --linetype custom: line type by a column, or a fixed one (solid, dashed, dotted, dotdash, longdash) --label custom: text of the text geom --plot-name custom: file name of the plot (default plot) --title custom: plot title; report: title of the document --subtitle custom: plot subtitle; report: subtitle of the document --caption custom: plot caption (bottom right) --plot-alpha <0-1> custom: opacity of points, areas and bands (default depends on the geom) --line-width custom: line width (default 1) --facet-rows custom: facet_grid rows: one or more columns, comma separated --facet-cols custom: facet_grid columns --facet custom: facet_wrap by one or more columns --facet-ncol custom: number of panel columns of facet_wrap --facet-nrow custom: number of panel rows of facet_wrap --facet-scales custom: fixed (default) | free | free_x | free_y --facet-labels custom: strip text: value (default) | both (COLUMN: value) --legend-title custom: legend title --xlim custom: x axis limits, e.g. 0,100 (an empty end is open: ,100) --ylim custom: y axis limits --x-angle custom: angle of the x axis labels (default: 45 when category labels would overlap) --hline custom: horizontal reference lines at these y values --vline custom: vertical reference lines at these x values --abline custom: reference line y = A + B*x --smooth-method custom: smooth geom: loess (default) | lm --span <0-1> custom: loess span (default 0.75) --smooth-level <0-1> custom: confidence level of the smooth band (default 0.95) --nbins custom: number of histogram bins (default 30) --binwidth custom: histogram bin width (overrides --nbins) --y-stat custom: what a histogram / bar / density shows: count (default) | density | percent --position custom: bars and histograms of groups: stack (default) | dodge | fill | identity --summary-fun custom: bar / errorbar / pointrange summary of y: mean (default), median, sum, min, max, n, sd, geomean, q1, q3 --summary-error custom: error bars: sd | se | ci95 | iqr | range | none --jitter custom: width of the jitter geom as a fraction of the spacing (default 0.4) --theme custom: classic (default) | bw | minimal | gray --palette custom: colour palette name (okabe-ito, tableau, viridis, ...), a colour list, or LEVEL=COLOUR pairs --select custom: keep these columns, in this order (after the other data steps) --sort custom: sort the rows by these columns (prefix - for descending) --distinct custom: keep the first row of every combination of these columns --head custom: keep the first N rows --table-kind custom: make a table: listing | summary | demographics (table1) | frequency | pivot | correlation (--list-plots describes them) --table-name custom: file name of the table (default table) --table-title custom: table title --table-footnote custom: table footnote --table-by custom: group the table by these columns (summary, demographics) --table-stats custom: statistics, comma separated: n, nmiss, mean, sd, se, cv, geomean, geocv, median, min, max, sum, q1, q3, iqr, lcl95, ucl95, pNN, mean_sd, mean_se, mean_ci, median_range, median_iqr, geomean_cv, range --table-rows custom: rows of a frequency / pivot table --table-columns custom: columns of a frequency / pivot table --table-value custom: the column a pivot table summarises --table-fun custom: the statistic of a pivot table (default mean) --table-percent custom: percentages of a frequency table: none (default) | row | column | total --table-digits custom: significant digits of this table (default --digits, else 3) --table-categorical custom: categorical variables of a demographics table --table-continuous custom: continuous variables of a demographics table --table-max-levels custom: a numeric variable with at most N different values is categorical in a demographics table (default 5) --table-method custom: correlation method: pearson (default) | spearman --flip custom: swap the axes (coord_flip) --equal-axes custom: the same range on both axes (coord_equal-like), e.g. for observed against predicted --identity custom: draw the line of identity y = x --no-smooth-se custom: no confidence band around the smooth --svg custom: also write the plots as SVG (plots/svg/) --no-csv custom: do not write the tables as CSV --no-markdown custom: do not write the tables as Markdown --no-html custom: do not write the tables as HTML; report: no HTML document (the default) --border-color custom: outline colour of bars, boxes, violins, histograms, areas and tiles (a name or #RRGGBB; none = no outline); default: the colour aesthetic, else dark grey --border-width custom: outline width of bars, boxes, violins, histograms, areas and tiles, relative to the default (1); 0 = no outline --stroke-color custom: outline colour of the points (a ring around a filled marker); default none --stroke-width custom: outline width of the points (default 0.6 when --stroke-color is given) --color-title custom: title of the legend of the colour aesthetic (--legend-title sets all legends) --fill-title custom: title of the legend of the fill aesthetic --shape-title custom: title of the legend of the shape aesthetic --size-title custom: title of the legend of the size aesthetic --linetype-title custom: title of the legend of the line type aesthetic --ref-color custom: colour of the reference lines (--hline, --vline, --abline, --identity); default dark grey --ref-linetype custom: line type of the reference lines: solid, dashed (default), dotted, dotdash, longdash --ref-width custom: width of the reference lines relative to the default (1) --title-size custom: font size of the plot title in points (default 1.2 x the base size) --axis-title-size custom: font size of the axis titles in points (default the base size) --axis-text-size custom: font size of the tick labels in points (default 0.85 x the base size) --legend-text-size custom: font size of the legend labels in points (default 0.85 x the base size) --strip-text-size custom: font size of the facet labels in points (default 0.85 x the base size) --title-align custom: left (default) | center | right: where the title and subtitle sit --plot-background custom: colour of the figure background (default white) --panel-background custom: colour of the panels (default depends on --theme) --grid-color custom: colour of the grid lines (none removes them; default depends on --theme) --x-breaks custom: tick positions of a numeric x axis, e.g. 0,12,24,48 (default: chosen from the data) --y-breaks custom: tick positions of a numeric y axis --bar-width <0-1> custom: width of bars, boxes, violins and tiles as a fraction of the space of a category (default 0.8 for bars, 0.75 for boxes, 0.9 for violins) --band-alpha <0-1> custom: opacity of the confidence band of the smooth (default 0.2) --text-size custom: font size of the labels of the text geom in points (default the base size) --na-color custom: colour of the rows whose colour or fill value is missing (default grey) --table-rename custom: rename column headings and cell texts of the table: OLD=NEW pairs, comma separated (use the settings file for texts with commas), e.g. WT=Weight (kg),M=Male --table-hide custom: leave these columns out of the table (by their heading, after --table-rename) --table-na-text custom: text for a missing value in the table (default NA) --table-decimals custom: show the numbers of the table with N decimals instead of --table-digits significant digits --table-percent-digits custom: decimals of the percentages in frequency and demographics tables (default 1) --no-outliers custom: boxplots without the points beyond the whiskers --table-transpose custom: swap the rows and columns of the table --no-settings-file custom: do not write custom_settings.custom (the settings file that reproduces this run) --no-tables custom: plots only, write no tables --table-total custom: add the total / overall row and column --no-table-total custom: leave out the total / overall row and column Report: --markdown report: the Markdown text itself, instead of a file (use "-" as the file to read standard input) --file-name report: base file name of the outputs, without extension or folder (default: the name of the Markdown file, or "report") --no-docx report: do not write the Word document (.docx) --no-pdf report: do not write the PDF document (.pdf) --html report: also write an HTML document (.html); off by default --date report: date shown under the title ("today" writes the current date) --lang report: language code of the Word and HTML documents (default en) --page-size report: page size of the Word and PDF documents: a3 | a4 | a5 | letter | legal (default a4) --landscape report: landscape pages --margin report: page margin in millimetres, 5 to 60 (default 25) --font-size report: body font size in points, 6 to 24 (default 11) --toc report: put a table of contents after the title block --toc-depth report: heading levels listed in the table of contents, 1 to 6 (default 3) --no-page-numbers report: no page numbers in the footer of the Word and PDF documents --css report: a style sheet (.css) added to the HTML document Autoinit: --init-method autoinit: method: auto (default: every method the data allow) | nca | nls | ml --scale autoinit: the scaling of the target control stream, e.g. V/1000 for S1 = V/1000 (dose mg, concentrations ng/mL), V*1000, or a divisor (1000). Volumes and clearances are reported in its units and the NONMEM blocks carry the same S line --dose-unit autoinit: dose unit (g, mg, ug, ng, pg); with --conc-unit sets the scale --conc-unit autoinit: concentration unit (mass/volume: mg/L, ug/mL, ng/mL, pg/mL, …); with --dose-unit sets the scale so that volumes are in L --ml-samples autoinit: simulated profiles per subject and iteration for the ML method (default 2000) --min-r2 autoinit: minimum adjusted R² of the NCA terminal phase (default 0.80) --max-extrap autoinit: largest extrapolated % of AUC for a usable NCA (default 30) --omega-method autoinit: OMEGA from individual estimates: robust (default, MAD) | variance NCA: --auc-method nca: trapezoid rule: linear | linear-log | linear-up-log-down (default) --blq-rule nca: BLQ rule: zero | missing | lloq | half-lloq | tmax-zero-missing (default) | first-zero-mid-half-last-missing --lz-method nca: terminal slope: best-fit (default) | last-n | time-range | none --lz-min-points nca: fewest points of a best-fit terminal regression (default 3) --lz-max-points nca: most points of a best-fit terminal regression (0 = no limit) --partial-auc nca: partial areas, e.g. 0-4,0-12,4-12 (times after the dose) --c0-method nca: C0 of an IV bolus: extrapolate (default) | observed | first --steady-state nca: which intervals are at steady state: auto (SS = 1 records; default) | none | last | all --tau nca: dosing interval tau when the data have no II --nca-intervals nca: which dosing intervals of a subject are analysed: all (default) | first | last --min-observations nca: fewest usable samples of a profile (default 3) --dose-factor nca: factor on the dose in CL and V (e.g. 1000 for a dose in mg and ng/mL) --reference-group nca: reference group of the geometric-mean ratios (a label such as TRT=A, or A) --no-individual-plots nca: no individual profile plots (the other figures are kept) --individual-rows nca: rows of panels per page of individual plots (1-20, default 4) --individual-cols nca: columns of panels per page of individual plots (1-20, default 4) --individual-yscale nca: y axis of the individual plots: log (default) | linear --individual-terminal-points nca: ring the points of the terminal regression in the individual plots --individual-lines nca: join the observations by lines in the individual plots QC: --categorical qc-data: covariates to treat as categorical, comma separated (default: whole numbers with few levels). The covariates to check are given with --covariates WT,AGE,SEX --time-varying qc-data: covariates that change within an individual, comma separated --tad-col qc-data: column with the time after the latest dose, compared with the dosing history --nominal-time-col qc-data: column with the nominal (scheduled) time, compared with TIME --dvid-col qc-data: column with the observation type (DVID, YTYPE), listed per type --skip-checks qc-data, qc-nm: do not run these checks (IDs such as REC13 or categories, comma separated) --only-checks qc-data, qc-nm: run only these checks (IDs or categories, comma separated) --fail-on qc-data, qc-nm: exit with status 7 (qc-data) or 6 (qc-nm) after writing the outputs when a check fails (error), fails or warns (warning), or never (never, default) --nm-ignore