Documentation

29.7 Generated covariates and correlation structure

Generated covariates and correlation structure

Every synthetic subject receives WT, AGE, SEX, EGFR, and CRCL. WT and EGFR are lognormal, AGE is normal within 18–85, and SEX is Bernoulli under settings-file moments. CRCL is generated as a near-copy of EGFR using configurable noise, intentionally creating a proxy covariate for competition and switching tests.

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

  • Settings expose WT median/CV, age mean/SD, SEX prevalence, EGFR median/CV, and CRCL noise.
  • The default synthetic generator is an adult teaching population, not an epidemiologic reference for a specific disease.
  • Correlation between EGFR and CRCL is intentional; the correlated simulate-study scenario additionally links EGFR and WT with log-scale r=0.7.
  • Inspect realised marginals, pairwise associations, category counts, and effect-reference medians.

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

[population]
wt_median=70
wt_cv=25
age_mean=45
age_sd=15
p_sex=0.5
egfr_median=95
egfr_cv=30
crcl_noise=5

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

Use the generator to test known mechanisms such as proxy competition, not to imply that its multivariate distribution represents a clinical population. For custom validation, design a generator whose joint distribution reflects the intended use case.

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

  • Checking only marginal means
  • Treating CRCL as a null covariate rather than a proxy
  • Generalising adult generated covariates to pediatric or organ-impaired populations

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.