Documentation

29.3 The synthetic-project pipeline

The synthetic-project pipeline

A described synthetic project is built in a reproducible sequence: resolve the design and truth; generate covariates and event records; parse the truth control stream; simulate DV; fit a base model without covariate effects; optionally fit the true covariate model; then write downstream configurations and integrity evidence. Each stage has a distinct failure mode and should be reviewed separately.

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

  • The dataset contains NONMEM event columns plus GROUP, DOSE, WT, AGE, SEX, EGFR, CRCL, and BLQ.
  • The truth model uses the declared parameter values and covariate effects; run101 intentionally omits those effects for selection exercises.
  • --covariate-model estimates the declared effects in run102, providing a direct recovery example and forest input.
  • The generated project can immediately feed QC, EDA, NCA, fit, VPC, covariate, forest, sims, power, and report commands.

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 study --structure 2cmt-oral --effects 'CL~WT=0.75,V~WT=1,CL~EGFR=0.6' --covariate-model

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

Review the truth CTL, dataset, base-fit convergence, and optional truth-model recovery before using the project as a teaching or validation fixture. A successful pipeline can still reflect a weak design or a model that is too similar to the analysis model.

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

  • Reviewing only README.md
  • Using run101 as the generating model in a truth comparison
  • Ignoring fit/covariance warnings because the data are synthetic

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.