Documentation

29.2 The three generate modes

The three `generate` modes

generate has three modes. With no design option it writes one of the stable analytic, ode, or iov-blq preset projects; example remains an alias. A design option such as --structure, --groups, --doses, --typical, --effects, or a .gen file selects the configurable synthetic-design generator. --data selects existing-dataset mode: the file is normalised and wrapped in a fitted NONMEM-style project, but no truth dataset is simulated.

Why this matters

The choice on this page changes either the generated truth, the information available to the fit, the analysis decision rule, or the denominator of an operating characteristic. A novice should be able to point to the corresponding setting and output column. A reviewer should be able to trace every aggregate back to a generated project, completed engine run, and relationship-level row.

Detailed behavior

  • Preset mode is deliberately stable for documentation and smoke tests; design-only estimation overrides are refused when they would silently alter the preset.
  • Synthetic-design mode writes truth.ctl, groups.csv, generated data, base run101, optional covariate run102, and reusable settings.
  • Existing-data mode writes normalised data and fitted models but no truth.ctl or groups.csv, because the data do not have known generating truth.
  • The resolved nlmx.gen and project README identify the mode and assumptions.

Keep four layers separate: design truth defines what was generated; realised data contain finite random variation; fitted artifacts estimate the model from those data; and analysis decisions classify relationships under a method and threshold. Mixing these layers is the most common source of incorrect recovery claims.

Example command or settings fragment

nlmx generate -o preset --model analytic
nlmx generate -o design --structure 2cmt-oral --doses 50,100,200
nlmx generate -o project --data pk.csv --structure 1cmt-oral

Begin with an inexpensive smoke run, inspect every generated artifact and warning, and only then increase subjects, scenarios, engines, or replicates. Use a new output directory for each analytical run. In a regulated or validation setting, preserve both the command as issued and the resolved settings or generated configuration because defaults and precedence are versioned behavior.

Interpretation and quality control

Do not infer known truth merely because nlmx wrote the control stream. In existing-data mode, parameter starts and fitted estimates are model assumptions and estimates, not generating values. In synthetic mode, keep the truth model separate from fitted run101/run102.

At minimum, verify subject/record counts, truth coefficients and forms, fit convergence, covariance status, relationship scope, classifications, completed denominators, and checksums. Read the row-level result before trusting a scenario metric. A graph is a compact diagnostic view; numerical tables remain authoritative.

Common mistakes

  • Combining preset assumptions with design options
  • Expecting truth files in existing-data mode
  • Treating the generated base fit as the truth model

Also avoid describing a failed or skipped cell as a zero rate. Missing, undefined, failed, rejected, and uncertain are different states and must remain distinguishable.

Evidence to retain

  • nlmx version, command, configuration, seed behavior, threads, and runtime environment;
  • generated truth/control stream, data, group/design definition, base and optional covariate fits;
  • engine settings, relationship scope, row-level results, summaries, metrics, report, failures, and completed denominators;
  • checksums, scripts used to regenerate figures, tolerances, acceptance rules, and scoped interpretation.

See the previous page, next page, and complete command and settings index.