15.34 Limits, architecture, validation, and performance
nca targets rich individual plasma concentration profiles. It does not currently provide sparse-sampling batch/naive-pooled NCA, urine NCA, full PK/PD parameter families, or a complete regulatory bioequivalence model suite. Its simple comparisons do not replace sequence/period/carryover models. Unsupported designs should use a suitable method rather than forcing records through the command.
How the command is built
The nca command reads configuration and data, applies mutation, builds settings, calls the NCA engine, and writes tables/report/figures. The engine is separated by responsibility:
| Stage | Responsibility |
|---|---|
| Configuration and settings | Template, parsing, defaults, validation. |
| Profile preparation and BLQ | Dose intervals, routes, duplicates, BLQ processing. |
| AUC and terminal phase | Integration, terminal regression, profile parameters. |
| Summaries and exposure | Summaries, statistics, comparisons. |
| Plots and output | Figures and result representations. |
Profiles are analysed in parallel through the configured thread pool. Results should not depend on --threads; validate that property on representative datasets. Performance comparisons should include data size, profile/sample count, figure settings, thread count, hardware, software versions, warm/cold filesystem state, and whether reference tools write equivalent artifacts.
Validation evidence and boundaries
The program's unit tests cover trapezoids, closed forms, terminal regressions, BLQ rules, parameter registry, statistics, power models, and t quantiles. Integration tests cover command options, template/settings errors, IV closed-form recovery, and crossover bioavailability. An independent Python checker is documented as matching configured fixtures to floating-point precision.
Those facts validate tested paths, not every dataset. Release qualification should rerun unit/integration tests, frozen Chapter 14/15 fixtures, reference-software cases, malformed inputs, categorical selection branches, and platform/tolerance checks. New defaults require new expected evidence.
Practical release gate
Require zero unexpected file/schema changes, exact categorical decisions, parameter differences within declared tolerances, deterministic thread-count results, valid checksums, reviewed flags/skips, and performance within a predefined budget. Record failures rather than silently updating expected outputs.
Common mistakes
- Using individual NCA for destructive/composite sampling.
- Treating unit tests as universal software equivalence.
- Benchmarking tables-only nlmx against a reference writing full graphics.
- Updating golden outputs without mismatch disposition.
Checklist
- Confirm the design lies inside the supported envelope.
- Run layered numerical and categorical validation.
- Test thread-count determinism.
- Benchmark equivalent workloads.
- Version every claim, fixture, tolerance, and limitation.
Further reading
See Chapter 14 validation, Chapter 9 reproducibility, and the remaining documentation plan.