Documentation

33.35 Worked example: filters, subgroups, and one multi-endpoint file

Worked example: filters, subgroups, and one multi-endpoint file
Executed or structural Chapter 33 evidence

The filter workflow removes protocol deviations and expands overall CHG analysis by STUDY. The all-analysis file shares AUC, arm, placebo, 90% CI, and doubling contrast across continuous, binary, ordinal, count, and TTE blocks. It produced five analyses and 76 files.

Command or configuration pattern

nlmx er -c data/er/13_all_analyses.er -o all --overwrite

The relevant controls are: global filter; inheritance; endpoint overrides; stable names/slugs. Use the complete command and settings index for accepted values, defaults, CLI mappings, and settings-only controls.

A reliable operating sequence

  1. State the endpoint estimand, exposure metric/window/units, analysis population, adjustment set, and clinically useful contrast.
  2. Reconcile input rows, subjects, arms, exposure availability, endpoint information, and all endpoint-specific fields.
  3. Run the smallest useful specification first; inspect exclusions and eligible models before adding subgroups, selection, or bootstrap.
  4. Read absolute predictions and observed support alongside relative effects, information criteria, p-values, and diagnostics.
  5. Archive the command, .er file, mutated/used data, exclusions, transcript, tables, plots, report, version, and checksums.

How to read and review the result

Predict expansion before execution and inspect er_analyses.csv as the routing table. One convenient report does not make endpoints statistically multiplicity-adjusted. Use separate files when different teams, locks, or presentation specifications require independent evidence.

For a novice, the safest reading order is er_summary.txt → er_analyses.csv → the analysis-specific exclusions and model table → effects/predictions → diagnostic plots → row-level data → report.html. The report is a presentation layer; the CSV/JSON files and transcript are the audit layer.

Quality-control questions

  • Did the number of analysed subjects, events, categories, exposure groups, and visits match the specification?
  • Were placebo, active zeros, missing values, filters, repeated rows, categories, offsets, censoring, and covariate references handled as intended?
  • Were ineligible fits retained and explained rather than silently dropped or allowed to win?
  • Does the reported contrast stay inside exposure support, and are its units and endpoint direction clear?
  • Do diagnostics and sensitivities support the same decision, and are causal and transportability limits explicit?

Common failure modes

  • Treating the best criterion or smallest p-value as a clinical conclusion.
  • Reading an odds, rate, or hazard ratio without its exposure contrast and absolute outcome context.
  • Overwriting an evidence directory before preserving the prior settings, log, and checksums.

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