11.11 Header and column checks: HDR01–HDR08
The header maps physical positions to data meanings. A duplicate or invalid name can make a numerically perfect row unusable.
| ID | Beginner interpretation |
|---|---|
| HDR01 | Required columns such as ID, TIME and DV exist |
| HDR02 | Recommended AMT, EVID, MDV and CMT exist |
| HDR03 | First line is a complete header, not numeric data |
| HDR04 | Names are unique ignoring case (WT and wt collide) |
| HDR05 | Names begin with a letter and contain only letters/digits/underscore |
| HDR06 | Names fit the configured 20-character limit |
| HDR07 | Names avoid NM-TRAN/code reserved words |
| HDR08 | Non-DROP items fit the configured 50-item limit |
Required versus recommended
Missing a required column fails because the configured QC cannot form its core representation. Missing a recommended event column warns because inference may be possible, but inference hides errors. Final modeling datasets should generally carry explicit EVID and MDV.
Reserved words
Names such as Y, F, T, A, EXP, LOG, THETA, ETA and EPS can collide with NONMEM variables or functions. Rename the column or mark an unused item DROP in $INPUT; do not assume a name that works in R works in abbreviated code.
How to investigate a header finding
Compare three artifacts side by side: the received header, the data-transfer specification and the model's $INPUT. Follow positions, not only names. If a name must change, update the reproducible derivation, specification and every consumer together. For HDR08, count the items that will remain after =DROP; merely deleting useful source columns to reach 50 can remove audit context. A header-only fix should not change any data-row values, so verify row hashes or a structured before/after comparison.
Common mistakes
- Checking uniqueness case-sensitively.
- Counting DROP columns toward usable data items incorrectly.
- Renaming columns without updating control streams and specifications.
- Accepting inferred EVID/MDV without explicit review.
Checklist
- Compare header against the data-transfer specification.
- Confirm every special item mapping.
- Review reserved words and length limits for the target NONMEM version.
- Update all downstream consumers after approved renaming.
Further reading
See $INPUT mapping, control-stream input records and NONMEM statements.